home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / gcc_260.zip / gcc_260 / cp / ChangeLog < prev    next >
Text File  |  1994-07-13  |  167KB  |  4,517 lines

  1. Wed Jul 13 03:57:54 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2.  
  3.         * method.c (hack_identifier): Put back old code so lists of
  4.         non-functions will be handled properly.
  5.  
  6.         * cp-tree.h (TYPE_NEEDS_CONSTRUCTING): #if 0 out; this macro is now
  7.         defined in the language-independent tree.h.
  8.  
  9.         * tree.c (count_functions): Avoid bogus warning when compiling this
  10.         function.
  11.  
  12. Mon Jul 11 18:37:20 1994  Jason Merrill  (jason@deneb.cygnus.com)
  13.  
  14.         * decl.c (grok_reference_init): Always save the initializer of a
  15.         reference.
  16.  
  17. Fri Jul  8 17:41:46 1994  Mike Stump  (mrs@cygnus.com)
  18.  
  19.     * decl.c (cplus_expand_expr_stmt): Wrap statement expressions inside
  20.     CLEANUP_POINT_EXPRs so that the stack slots can be reused.
  21.     (disabled for now)
  22.  
  23. Fri Jul  8 12:59:38 1994  Jason Merrill  (jason@deneb.cygnus.com)
  24.  
  25.     * method.c (hack_identifier): Fix for new overloading.
  26.  
  27.     * typeck.c (build_binary_op_nodefault): Don't mess with division by
  28.         zero.
  29.  
  30. Fri Jul  8 13:20:28 1994  Gerald Baumgartner  (gb@cs.purdue.edu)
  31.  
  32.     * decl2.c (finish_file): Only call walk_sigtables, if
  33.     flag_handle_signatures is turned on, don't waste time otherwise.
  34.  
  35. Fri Jul  8 02:27:41 1994  Jason Merrill  (jason@deneb.cygnus.com)
  36.  
  37.     * decl.c (push_overloaded_decl): Don't create overloads of one when
  38.     shadowing a class type.
  39.     * typeck.c (build_x_function_call): Complain about overloads of one
  40.  
  41.     * decl.c (grokdeclarator): Don't try to treat a char* as a tree.
  42.     (grokdeclarator): Fix setting of TREE_STATIC.
  43.     (start_decl): Clear DECL_IN_AGGR_P after calling duplicate_decls.
  44.  
  45. Thu Jul  7 22:20:46 1994  Gerald Baumgartner  (gb@andros.cygnus.com)
  46.  
  47.     * cp-tree.h (walk_sigtables): Created extern declaration.
  48.     * decl2.c (walk_sigtables): Created function, patterned after
  49.     walk_vtables, even though we only need it to write out sigtables.
  50.     (finish_sigtable_vardecl): Created function.
  51.     (finish_vtable_vardecl): Changed 0 to NULL_PTR.
  52.     (finish_file): Call walk_sigtables.
  53.  
  54.     * sig.c (build_signature_table_constructor): Mark class member
  55.     function pointed to from signature table entry as addressable.
  56.  
  57. Thu Jul  7 13:39:37 1994  Jason Merrill  (jason@deneb.cygnus.com)
  58.  
  59.     * decl.c (start_decl): Check new decl of static member variable
  60.     against the declaration in the class here.
  61.     (grokvardecl): Instead of here.
  62.  
  63.     * class.c (prepare_fresh_vtable): Call import_export_vtable if not
  64.     -fvtable-thunks.
  65.     (build_vtable): Ditto.
  66.  
  67.     * decl2.c (import_export_vtable): Move logic for deciding the
  68.     interface of a template class from here.
  69.     (import_export_template): To here.
  70.     (finish_vtable_vardecl): Call import_export_template before
  71.     import_export_vtable.
  72.  
  73. Wed Jul  6 20:25:48 1994  Mike Stump  (mrs@cygnus.com)
  74.  
  75.     * except.c (init_exception_processing): Setup interim_eh_hook to
  76.     call lang_interim_eh. 
  77.     * except.c (do_unwind): Propagate throw object value across
  78.     stack unwinding.
  79.     * except.c (saved_throw_value): Used to hold the value of the object
  80.     being thrown.  It is always a reference to the real value.
  81.     * except.c (expand_start_catch_block): Add handling for the
  82.     value of the exception object.
  83.     * except.c (expand_start_catch_block): Add handler for the handler,
  84.     so that throws inside the handler go to the outer block.
  85.     * except.c (expand_end_catch_block): Ditto.
  86.     * parse.y (handler_args): Use parm instead, as the other doesn't yet
  87.     handle references correctly.
  88.  
  89. Wed Jul  6 17:55:32 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  90.  
  91.     * decl2.c (mark_vtable_entries):  If -ftable-thunks, set the
  92.     vtable entry properly to abort.
  93.  
  94. Tue Jul  5 14:07:54 1994  Jason Merrill  (jason@deneb.cygnus.com)
  95.  
  96.     * typeck.c (build_binary_op_nodefault): Downgrade division by zero
  97.     errors to warnings.
  98.  
  99.     * call.c (build_overload_call_real): Handle fnname being a list of
  100.     functions.
  101.     * typeck.c (build_x_function_call): Pass list of functions to
  102.     build_overload_call, not just the name.
  103.     * tree.c (count_functions): Complain when called for invalid
  104.     argument.
  105.  
  106.     * decl.c (grokdeclarator): Fix settings of TREE_STATIC, TREE_PUBLIC
  107.     and DECL_EXTERNAL on static members and initialized const members.
  108.     * decl2.c (grokfield): Reflect this change.
  109.  
  110. Fri Jul  1 09:35:51 1994  Jason Merrill  (jason@deneb.cygnus.com)
  111.  
  112.     * parse.y (init): ANSI C++ does not forbid { }.
  113.  
  114. Thu Jun 30 00:35:22 1994  Jason Merrill  (jason@deneb.cygnus.com)
  115.  
  116.     * decl2.c (lang_decode_option): Set warn_nonvdtor along with -Wall.
  117.     warn_nonvdtor defaults to off.
  118.  
  119.     * class.c (instantiate_type): Use comptypes rather than relying on 
  120.     types to satisfy ==.
  121.  
  122.     * decl.c (start_function): Set DECL_DEFER_OUTPUT on all inlines that
  123.     might be static.
  124.  
  125.     * tree.c (build_cplus_new): Never build WITH_CLEANUP_EXPRs.
  126.  
  127.     * decl.c (grok_reference_init): Deal with ADDR_EXPRs of TARGET_EXPRs.
  128.  
  129.     * cvt.c (cp_convert): Pass 0 to with_cleanup_p arg of
  130.     build_cplus_new.
  131.  
  132. Wed Jun 29 22:31:09 1994  Jason Merrill  (jason@deneb.cygnus.com)
  133.  
  134.     * decl2.c (finish_file): Maybe consider static inlines multiple
  135.     times, in case they reference each other.
  136.  
  137. Tue Jun 28 11:58:38 1994  Gerald Baumgartner  (gb@cs.purdue.edu)
  138.  
  139.     * class.c (finish_struct): Don't `cons_up_default_function's
  140.     for signatures.
  141.     (finish_struct): Handle an empty method_vec correctly.
  142.  
  143.     * decl.c (grokdeclarator): Don't warn about a signature being
  144.     empty in a signature pointer declaration if we only saw a
  145.     forward declaration of the signature.  Changed `warning's into
  146.     `cp_warning's.
  147.  
  148.     * sig.c (build_sigtable): Don't die if a null signature table
  149.     constructor is returned.
  150.     (build_signature_pointer_constructor): If the signature table
  151.     constructor is null, the _sptr field is set to a null pointer
  152.     and cast to the appropriate type.  Make copies of all null
  153.     pointers so that the type null_pointer_node doesn't get changed.
  154.     (build_signature_table_constructor): Added comments.
  155.  
  156.     * sig.c (build_signature_pointer_constructor): Complain if we
  157.     try to assign to/initialize a signature pointer/reference of
  158.     an undefined signature.
  159.  
  160. Mon Jun 27 14:05:16 1994  Gerald Baumgartner  (gb@cs.purdue.edu)
  161.  
  162.     * typeck2.c (store_init_value): Don't be pedantic about
  163.     non-constant initializers of signature tables/pointers/references.
  164.  
  165. Fri Jun 24 16:49:41 1994  Gerald Baumgartner  (gb@cs.purdue.edu)
  166.  
  167.     * decl.c (grokdeclarator): If we are grokking an opaque typedef
  168.     in a signature, don't complain about it begin static.
  169.  
  170. Wed Jun 29 16:44:45 1994  Mike Stump  (mrs@cygnus.com)
  171.  
  172.     Fixes a problem of the this pointer being wrong in virtual calls to
  173.     methods that are not overridden in more derived classes.
  174.  
  175.     * class.c (fixup_vtable_delta): New routine.  It will fixup the
  176.     delta entries in vtables, wheever they need updating.
  177.     * class.c (finish_struct): Call the new routine for all virtual
  178.     bases, as they can have different offsets, than those used in base
  179.     classes that we derive our vtable from.
  180.  
  181. Tue Jun 28 23:49:28 1994  Jason Merrill  (jason@deneb.cygnus.com)
  182.  
  183.     * typeck.c (build_binary_op): Use the types before default
  184.     conversions in the error message.
  185.  
  186.     * *.c: Use c_build_type_variant instead of build_type_variant where
  187.     the type might be an array.
  188.  
  189.     * call.c (build_method_call): Call build_type_variant and
  190.     build_reference_type in the right order.
  191.     * decl.c (record_builtin_type): Ditto.
  192.  
  193. Wed Jun 29 16:58:53 1994  Jason Merrill  (jason@deneb.cygnus.com)
  194.  
  195.     * call.c (build_method_call): Call build_type_variant and
  196.     build_reference_type in the right order.
  197.     * decl.c (record_builtin_type): Ditto.
  198.  
  199. Tue Jun 28 23:49:28 1994  Jason Merrill  (jason@deneb.cygnus.com)
  200.  
  201.     * typeck.c (build_binary_op): Use the types before default
  202.     conversions in the error message.
  203.  
  204.     * *.c: Use c_build_type_variant instead of build_type_variant where
  205.     the type might be an array.
  206.  
  207. Sat Jun 25 11:50:54 1994  Jason Merrill  (jason@deneb.cygnus.com)
  208.  
  209.     * cvt.c (convert_to_reference): Try UDC's before doing the
  210.     reinterpret_cast thang, though.
  211.  
  212. Fri Jun 24 01:24:01 1994  Jason Merrill  (jason@deneb.cygnus.com)
  213.  
  214.     * typeck.c (c_expand_return): Don't USE the return value location
  215.     after we've expanded the jump.
  216.  
  217.     * decl2.c (finish_file): Make sure DECL_SAVED_INSNS is not 0 before
  218.     trying to write out an inline.
  219.  
  220.     * cvt.c (build_up_reference): Also do address adjustment when the
  221.     target type uses MI.
  222.     (convert_to_reference): Try UDCs only after built-in conversions.
  223.     (build_type_conversion_1): Don't play games with the argument to the
  224.     method.
  225.     (build_type_conversion): #if 0 out code for binding to reference.
  226.  
  227. Thu Jun 23 00:22:28 1994  Jason Merrill  (jason@deneb.cygnus.com)
  228.  
  229.     * decl2.c (finish_file): Use TREE_SYMBOL_REFERENCED to decide
  230.     whether to emit inlines.
  231.  
  232.     * decl.c (grokdeclarator): Set explicit_int for decls that just
  233.     specify, say, 'long'.
  234.  
  235.     * init.c (do_friend): Do overload C functions (or call pushdecl,
  236.     anyaway).
  237.  
  238. Wed Jun 22 13:40:49 1994  Jason Merrill  (jason@deneb.cygnus.com)
  239.  
  240.     * cvt.c (build_up_reference): Don't call readonly_error.
  241.     (convert_to_reference): Propagate const and volatile from expr to
  242.     its type.
  243.  
  244.     * tree.c (lvalue_p): Random CALL_EXPRs are not lvalues.
  245.  
  246.     * cvt.c (build_up_reference): Break out WITH_CLEANUP_EXPR when
  247.     creating a temporary.
  248.     (convert_to_reference): Lose excessive and incorrect trickiness.
  249.     (cp_convert): Call build_cplus_new with with_cleanup_p set.
  250.  
  251.     * typeck2.c (build_functional_cast): Ditto.
  252.  
  253. Tue Jun 21 17:38:38 1994  Jason Merrill  (jason@deneb.cygnus.com)
  254.  
  255.     * decl.c (grokdeclarator): signed, unsigned, long and short all
  256.     imply 'int'.
  257.  
  258.     * decl.c (grokdeclarator): Allow "this is a type" syntax.
  259.     (grok_reference_init): Simplify and fix.
  260.  
  261. Sun Jun 19 17:08:48 1994  Jason Merrill  (jason@deneb.cygnus.com)
  262.  
  263.     * decl.c (grokdeclarator): pedwarn about a typedef that specifies no
  264.     type.
  265.  
  266. Sat Jun 18 04:16:50 1994  Jason Merrill  (jason@deneb.cygnus.com)
  267.  
  268.     * decl.c (start_function): Move TREE_PUBLIC and DECL_EXTERNAL
  269.     tinkering to after call to pushdecl.
  270.  
  271. Fri Jun 17 14:48:28 1994  Jason Merrill  (jason@deneb.cygnus.com)
  272.  
  273.     * call.c (build_method_call): Handle destructors for non-aggregate
  274.     types properly.
  275.  
  276. Thu Jun 16 16:48:05 1994  Jason Merrill  (jason@deneb.cygnus.com)
  277.  
  278.     * call.c (build_method_call): Make sure that the name given for the
  279.     destructor matches the constructor_name of the instance.
  280.  
  281.     * pt.c (do_function_instantiation): A non-extern instantiation
  282.     overrides a later extern one.
  283.     (do_type_instantiation): Ditto.
  284.  
  285. Wed Jun 15 19:34:54 1994  Jason Merrill  (jason@deneb.cygnus.com)
  286.  
  287.     * init.c (expand_aggr_init): Use TYPE_MAIN_VARIANT to get the
  288.     unqualified array type.
  289.  
  290.     * cp-tree.h (EMPTY_CONSTRUCTOR_P): Tests whether NODE is a
  291.     CONSTRUCTOR with no elements.
  292.  
  293.     * decl.c (various): Lose empty_init_node.
  294.     (finish_decl): Use EMPTY_CONSTRUCTOR_P, do the empty CONSTRUCTOR
  295.     thing depending on the value of DECL_COMMON instead of
  296.     flag_conserve_space, do the empty CONSTRUCTOR thing for types that
  297.     don't have constructors, don't treat a real empty CONSTRUCTOR
  298.     specially.
  299.  
  300.     * typeck2.c (process_init_constructor): Don't treat empty_init_node
  301.     specially.
  302.  
  303. Wed Jun 15 19:05:25 1994  Mike Stump  (mrs@cygnus.com)
  304.  
  305.     * class.c (override_one_vtable): Don't forget to merge in an old
  306.     overrider when we wanted to reuse a vtable, but couldn't.
  307.  
  308. Wed Jun 15 15:03:16 1994  Jason Merrill  (jason@deneb.cygnus.com)
  309.  
  310.     * decl.c (start_decl): Put statics in common again.
  311.  
  312.     * decl.c (grokdeclarator): Return NULL_TREE for an error rather than
  313.     setting the type to error_mark_node.
  314.  
  315.     * typeck.c (build_modify_expr): Build up a COMPOUND_EXPR for enum
  316.     bitfield assignments.
  317.  
  318. Tue Jun 14 12:23:38 1994  Jason Merrill  (jason@deneb.cygnus.com)
  319.  
  320.     * decl.c (grok_op_properties): Const objects can be passed by value.
  321.  
  322. Mon Jun 13 03:10:59 1994  Jason Merrill  (jason@deneb.cygnus.com)
  323.  
  324.     * decl2.c (import_export_vtable): Force implicit instantiations to
  325.     be interface_only when -fno-implicit-templates.
  326.  
  327.     * decl.c (duplicate_decls): Redeclaring a class template name is an
  328.     error.
  329.  
  330.     * pt.c (end_template_decl): Call GNU_xref_decl for class templates.
  331.     * xref.c (GNU_xref_decl): Support templates.
  332.  
  333. Sat Jun 11 17:09:05 1994  Jason Merrill  (jason@deneb.cygnus.com)
  334.  
  335.     * decl.c (grok_op_properties): Split out checking for whether this
  336.     function should suppress the default assignment operator.
  337.     * decl2.c (grok_function_init): Ditto.
  338.     (copy_assignment_arg_p): New function do do just that.
  339.     Now considers virtual assignment operators that take a base as an
  340.     argument to count as copy assignment operators.
  341.  
  342.     * search.c (dfs_debug_mark): Lose checks for DWARF_DEBUG and
  343.     TREE_ASM_WRITTEN, as they are redundant.
  344.  
  345.     * pt.c (end_template_decl): Don't try to set DECL_CLASS_CONTEXT on a
  346.     decl that has no LANG_SPECIFIC part.
  347.     (do_type_instantiation): Force the debugging information for this
  348.     type to be emitted.
  349.  
  350.     * decl.c (start_decl): Clear up uses of various types of templates
  351.     (say sorry for static data members, rather than "invalid template"). 
  352.     (expand_static_init): Fix initialization of static data members of
  353.     template classes.
  354.  
  355. Fri Jun 10 00:41:19 1994  Jason Merrill  (jason@deneb.cygnus.com)
  356.  
  357.     * decl.c (grokdeclarator): Set DECL_CONTEXT on static data members.
  358.  
  359.     * g++.c (main): Use -xc++-cpp-output for .i files.
  360.  
  361.     * pt.c (tsubst): Give meaningful error about declaring template for
  362.     a copy constructor which was not declared in the class template.
  363.     (do_type_instantiation): Explicit instantiation before the class
  364.     template is an error.
  365.     (instantiate_template): Don't die if tsubst returns error_mark_node.
  366.  
  367. Thu Jun  9 19:04:59 1994  Jason Merrill  (jason@deneb.cygnus.com)
  368.  
  369.     Don't synthesize the copy assignment operator if the one in a base
  370.     class is pure virtual.
  371.     * cp-tree.h (TYPE_HAS_ABSTRACT_ASSIGN_REF): New macro to indicate
  372.     whether the type has a pure virtual copy assignment operator.
  373.     * class.c (finish_base_struct): Don't generate the copy assignment
  374.     operator if a base class has a pure virtual one.
  375.     * decl.c (grok_op_properties): Add disabled code to set
  376.     TYPE_HAS_ABSTRACT_ASSIGN_REF with comment pointing to where it is
  377.     actually set.
  378.     * decl2.c (grok_function_init): Set TYPE_HAS_ABSTRACT_ASSIGN_REF.
  379.  
  380.     * decl2.c (import_export_vtable): Always treat template
  381.     instantiations as if write_virtuals >= 2, and treat implicit
  382.     instantiations as external if -fno-implicit-templates.
  383.     (finish_file): Output all pending inlines if
  384.     flag_keep_inline_functions.
  385.  
  386. Wed Jun  8 20:48:02 1994  Mike Stump  (mrs@cygnus.com)
  387.  
  388.     * tree.c (layout_vbasetypes): Align virtual base classes inside
  389.     complete objects, so that we don't core dump on machines such as
  390.     SPARCs when we access members that require larger than normal
  391.     alignments, such as a double.  Also, we bump up the total alignment
  392.     on the complete type, as necessary.
  393.  
  394. Wed Jun  8 16:18:14 1994  Jason Merrill  (jason@deneb.cygnus.com)
  395.  
  396.     * gxxint.texi (Free Store): New section with code for examining
  397.     cookie.
  398.     (Limitations of g++): Remove operator delete entry, since it is no
  399.     longer accurate.  Fix access control entry.
  400.  
  401.     * typeck.c (build_unary_op): Pedwarn about taking the address of or
  402.     incrementing a cast to non-reference type.
  403.     (build_modify_expr): Use convert instead of convert_force again.
  404.  
  405.     * search.c (get_base_distance): Use IS_AGGR_TYPE_CODE to check for
  406.     class type, not == RECORD_TYPE.
  407.  
  408.     * decl.c (grokdeclarator): Cope with grokfndecl returning NULL_TREE.
  409.  
  410.     * typeck2.c (report_case_error): #if 0 out.
  411.     * lex.c (real_yylex): Lose RANGE.
  412.     * parse.y: Ditto.
  413.  
  414. Tue Jun  7 18:17:35 1994  Jason Merrill  (jason@deneb.cygnus.com)
  415.  
  416.     * parse.y (simple_stmt, case ranges): Use ELLIPSIS instead of RANGE.
  417.  
  418. Mon Jun  6 19:39:57 1994  Jason Merrill  (jason@deneb.cygnus.com)
  419.  
  420.     * typeck.c (build_c_cast): Don't shortcut conversions to the same
  421.     type.  Don't replace consts with their values here, since that's now
  422.     done in cp_convert.
  423.  
  424.     * cvt.c (cp_convert): When converting to bool, take
  425.     integer_zero_node to false_node and all other INTEGER_CSTs to
  426.     true_node.
  427.     (build_type_conversion): Don't complain about multiple conversions
  428.     to float if we're not really converting.
  429.  
  430. Fri Jun  3 02:10:56 1994  Jason Merrill  (jason@deneb.cygnus.com)
  431.  
  432.     Implement 'extern template class A<int>;' syntax for suppressing
  433.     specific implicit instantiations.
  434.     * cp-tree.h: Update prototypes for do_*_instantiation.
  435.     * pt.c (do_pending_expansions): Don't compile 'extern' explicit
  436.     instantiations.
  437.     (do_function_instantiation): Set DECL_EXTERNAL on 'extern' explicit
  438.     instantiations.
  439.     (do_type_instantiation): Ditto.
  440.     * parse.y (explicit_instantiation): Support 'extern template class
  441.     A<int>;' syntax.
  442.     * decl.c (start_function): Don't modify the settings of TREE_PUBLIC
  443.     and DECL_EXTERNAL on explicit instantiations.
  444.  
  445.     * cvt.c (cp_convert): Replace constants with their values before
  446.     converting.
  447.     (cp_convert): Consistently use 'e' instead of 'expr'.
  448.  
  449. Thu Jun  2 03:53:30 1994  Jason Merrill  (jason@deneb.cygnus.com)
  450.  
  451.     * typeck2.c (build_x_arrow): Resolve OFFSET_REFs first.
  452.  
  453. Wed Jun  1 18:57:35 1994  Jason Merrill  (jason@deneb.cygnus.com)
  454.  
  455.     * typeck2.c (digest_init): Handle initializing a pmf with an
  456.     overloaded method.
  457.     * typeck.c (build_ptrmemfunc): Handle overloaded methods.
  458.  
  459.     * decl.c (pushtag): Use build_decl to make TYPE_DECLs.
  460.     (xref_defn_tag): Ditto.
  461.     * pt.c (process_template_parm): Ditto.
  462.     (lookup_template_class): Ditto.
  463.     (push_template_decls): Ditto.
  464.     (instantiate_class_template): Ditto.
  465.     (create_nested_upt): Ditto.
  466.     * class.c (finish_struct): Don't try to set DECL_CLASS_CONTEXT on
  467.     TYPE_DECLs.
  468.  
  469.     * typeck.c (convert_arguments): Make sure type is not NULL before
  470.     checking its TREE_CODE.
  471.  
  472. Wed Jun  1 17:40:39 1994  Mike Stump  (mrs@cygnus.com)
  473.  
  474.     * class.c (get_derived_offset): New routine.
  475.     * class.c (finish_base_struct): Make sure we set BINFO_VTABLE and
  476.     BINFO_VIRTUALS when we choose a new base class to inherit from.
  477.     * class.c (modify_one_vtable): Use get_derived_offset to get the
  478.     offset to the most base class subobject that we derived this binfo
  479.     from.
  480.     * class.c (finish_struct): Move code to calculate the
  481.     DECL_FIELD_BITPOS of the vfield up, as we need might need it for
  482.     new calls to get_derived_offset in modify_one_vtable.
  483.  
  484. Wed Jun  1 16:50:59 1994  Jason Merrill  (jason@deneb.cygnus.com)
  485.  
  486.     * init.c (build_member_call): Use build_pointer_type instead of
  487.     TYPE_POINTER_TO.
  488.  
  489. Wed Jun  1 11:11:15 1994  Brendan Kehoe  (brendan@lisa.cygnus.com)
  490.  
  491.     * decl.c (grokdeclarator): Make sure we have a DNAME set before we
  492.     try to use it in an error.
  493.  
  494. Wed Jun  1 09:48:49 1994  Mike Stump  (mrs@cygnus.com)
  495.  
  496.     * typeck.c (convert_arguments, convert_for_initialization): Don't
  497.     strip NOP_EXPRs, when we are converting to a reference.
  498.  
  499. Wed Jun  1 01:11:38 1994  Jason Merrill  (jason@deneb.cygnus.com)
  500.  
  501.     * typeck.c (build_modify_expr): Don't dereference references when
  502.     initializing them.
  503.  
  504.     * decl2.c (grokfield): Don't check for grokdeclarator returning
  505.     error_mark_node any more.
  506.  
  507.     * decl.c (grokfndecl): Return NULL_TREE instead of error_mark_node.
  508.     (start_method): Return void_type_node instead of error_mark_node.
  509.  
  510.     * typeck.c (build_modify_expr): Resolve offset refs earlier.
  511.  
  512. Tue May 31 16:06:58 1994  Jason Merrill  (jason@deneb.cygnus.com)
  513.  
  514.     * call.c (build_method_call): Resolve OFFSET_REFs in the object.
  515.  
  516.     * typeck.c (build_modify_expr): Dereference references before trying
  517.     to assign to them.
  518.  
  519.     * call.c (build_method_call): Don't confuse type conversion
  520.     operators with constructors.
  521.     * typeck2.c (build_functional_cast): Just call build_c_cast if there
  522.     was only one parameter.
  523.     * method.c (build_typename_overload): Don't set
  524.     IDENTIFIER_GLOBAL_VALUE on these identifiers.
  525.     * decl.c (grok_op_properties): Warn about defining a type conversion
  526.     operator that converts to a base class (or reference to it).
  527.     * cvt.c (cp_convert): Don't try to use a type conversion operator
  528.     when converting to a base class.
  529.     (build_type_conversion_1): Don't call constructor_name_full on an
  530.     identifier.
  531.     * cp-tree.h (DERIVED_FROM_P): Should be self-explanatory.
  532.  
  533.     * decl.c (start_decl): Don't complain that error_mark_node is an
  534.     incomplete type.
  535.     (finish_decl): Check for type == error_mark_node.
  536.  
  537. Mon May 30 23:38:55 1994  Jason Merrill  (jason@deneb.cygnus.com)
  538.  
  539.     * decl.c (start_function): Set DECL_DEFER_OUTPUT on implicit
  540.     instantiations and inline members.
  541.  
  542.     * spew.c (yylex): Set looking_for_template if the next token is a '<'.
  543.  
  544.     * lex.h: Declare looking_for_template.
  545.  
  546.     * decl.c (lookup_name_real): Use looking_for_template to arbitrate
  547.     between type and template interpretations of an identifier.
  548.  
  549. Sat May 28 04:07:40 1994  Jason Merrill  (jason@deneb.cygnus.com)
  550.  
  551.     * pt.c (instantiate_template): Zero out p if we found a
  552.     specialization.
  553.  
  554.     * decl.c (grokdeclarator): Elucidate warning.
  555.     (grokdeclarator): If pedantic AND -ansi, complain about long long.
  556.  
  557.     Make explicit instantiation work reasonably.  It is now appropriate
  558.     to deprecate the use of -fexternal-templates.
  559.     * pt.c (instantiate_template): Set DECL_TEMPLATE_SPECIALIZATION or
  560.     DECL_IMPLICIT_INSTANTIATION on fndecl as appropriate.
  561.     (end_template_instantiation): Reflect changes in USE_TEMPLATE
  562.     semantics.
  563.     (do_pending_expansions): if (!flag_implicit_templates) DECIDE(0);
  564.     (do_function_instantiation): Don't set EXPLICIT_INST if
  565.     flag_external_templates is set.  Do set TREE_PUBLIC and DECL_EXTERN
  566.     appropriately otherwise.
  567.     (do_type_instantiation): Set interface info for class.  Set
  568.     TREE_PUBLIC and DECL_EXTERN for methods.  Do none of this if
  569.     flag_external_templates is set.
  570.     * parse.y: Reflect changes in USE_TEMPLATE semantics.
  571.     * decl2.c: New flag flag_implicit_templates determines whether or
  572.     not implicit instantiations get emitted.  This flag currently
  573.     defaults to true, and must be true for -fexternal-templates to work.
  574.     (finish_file): Consider flag_implement_inlines when
  575.     setting DECL_EXTERNAL.  Consider flag_implicit_templates when
  576.     deciding whether or not to emit a static copy.
  577.     * decl.c (start_function): Set TREE_PUBLIC and DECL_EXTERNAL
  578.     properly for template instantiations.
  579.     (start_method): Set DECL_IMPLICIT_INSTANTIATION on methods of a
  580.     template class.
  581.     * cp-tree.h (CLASSTYPE_USE_TEMPLATE): Change semantics.
  582.     (DECL_USE_TEMPLATE): Parallel macro for FUNCTION and VAR_DECLs.
  583.     (various others): Accessor macros for the above.
  584.  
  585. Fri May 27 13:57:40 1994  Jason Merrill  (jason@deneb.cygnus.com)
  586.  
  587.     * typeck.c (build_binary_op_nodefault): Division by constant zero is
  588.     an error.
  589.  
  590. Fri May 27 13:50:15 1994  Mike Stump  (mrs@cygnus.com)
  591.  
  592.     * class.c (override_one_vtable): Don't modify things we don't own.
  593.  
  594. Fri May 27 01:42:58 1994  Jason Merrill  (jason@deneb.cygnus.com)
  595.  
  596.     * decl.c (finish_decl): Don't postpone processing the initializer of
  597.     a decl with DECL_EXTERNAL set, and do call rest_of_compilation for a
  598.     PUBLIC const at toplevel.
  599.     (grokdeclarator): pedwarn about initializing non-const or
  600.     non-integral statics in the class body.
  601.  
  602.     * decl.c (pushtag): Don't try to set DECL_CLASS_CONTEXT on a
  603.     TYPE_DECL.
  604.  
  605.     * call.c (convert_harshness): Dereference reference on rhs before
  606.     proceeding, properly grok passing const things to non-const
  607.     references.
  608.  
  609.     * typeck.c (build_unary_op): Soften error about taking the address
  610.     of main() to a pedwarn.
  611.  
  612.     * lex.c (default_copy_constructor_body): Unambiguously specify base
  613.     classes (i.e. A((const class ::A&)_ctor_arg) ).
  614.     (default_assign_ref_body): Ditto.
  615.  
  616. Thu May 26 13:13:55 1994  Gerald Baumgartner  (gb@mexican.cygnus.com)
  617.  
  618.     * decl2.c (grokfield): Don't complain about local signature
  619.     method declaration without definition.
  620.  
  621.     * call.c (convert_harshness): If `type' is a signature pointer
  622.     and `parmtype' is a pointer to a signature, just return 0.  We
  623.     don't really convert in this case; it's a result of making the
  624.     `this' parameter of a signature method a signature pointer.
  625.  
  626.     * call.c (build_method_call): Distinguish calling the default copy
  627.     constructor of a signature pointer/reference from a signature
  628.     member function call.
  629.  
  630. Thu May 26 12:56:25 1994  Jason Merrill  (jason@deneb.cygnus.com)
  631.  
  632.     * decl2.c (grokfield): Don't set TREE_PUBLIC on member function
  633.     declarations.
  634.  
  635.     * decl.c (duplicate_decls): A previous function declaration as
  636.     static overrides a subsequent non-static definition.
  637.     (grokdeclarator): Don't set TREE_PUBLIC on inline method
  638.     declarations.
  639.  
  640. Wed May 25 14:36:38 1994  Jason Merrill  (jason@deneb.cygnus.com)
  641.  
  642.     * decl.c (grokdeclarator): Handle initialization of static const
  643.     members.
  644.     (finish_decl): Ditto.
  645.  
  646.     * decl2.c (grokfield): Allow initialization of static const members
  647.     even when pedantic.
  648.  
  649.     * decl2.c (grokfield): Deal with grokdeclarator returning
  650.     error_mark_node.
  651.  
  652.     * decl.c (grok_ctor_properties): Return 0 for A(A) constructor.
  653.     (grokfndecl): Check the return value of grok_ctor_properties.
  654.     (start_method): Ditto.
  655.  
  656.     * parse.y (absdcl): Expand type_quals inline.
  657.  
  658. Tue May 24 19:10:32 1994  Jason Merrill  (jason@deneb.cygnus.com)
  659.  
  660.     * decl.c (pushtag): Use IS_AGGR_TYPE rather than checking for a
  661.     RECORD_TYPE.
  662.  
  663. Tue May 24 18:09:16 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  664.  
  665.     * cp-tree.h (VTABLE_NAME_FORMAT):  If flag_vtable_thunks,
  666.     always use "__vt_%s".
  667.     * decl2.c (finish_vtable_vardecl):  Don't consider abstract virtuals
  668.     when looking for a "sentinal" method (to decide on emitting vtables).
  669.     * decl2.c (finish_file):  Scan all decls for thunks that need
  670.     to be emitted.
  671.     * decl2.c (finish_vtable_vardecl):  Don't bother calling emit_thunk.
  672.     * method.c (make_thunk):  Use a more meaningful label.  If there
  673.     exists a matching top-level THUNK_DECL re-use it;  otherwise
  674.     create a new THUNK_DECL (and declare it).
  675.     * method.c (emit_thunk):  Make thunk external/public depending
  676.     on the underlying method.
  677.  
  678. Tue May 24 00:22:04 1994  Jason Merrill  (jason@deneb.cygnus.com)
  679.  
  680.     * pt.c (tsubst): Use lookup_name_nonclass to find guiding decls, not
  681.     lookup_name.
  682.  
  683.     * call.c (build_overload_call_real): Don't immediately pick a
  684.     function which matches perfectly.
  685.  
  686.     * decl.c (grokdeclarator): Use c_build_type_variant for arrays.
  687.     (grokdeclarator): Warn about, and throw away, cv-quals attached to a
  688.     reference (like 'int &const j').
  689.  
  690.     * typeck.c (convert_arguments): Don't mess with i for methods.
  691.     * call.c (build_method_call): Pass the function decl to
  692.     convert_arguments.
  693.  
  694.     * typeck.c (comp_ptr_ttypes_real): New function.  Implements the
  695.     checking for which multi-level pointer conversions are allowed.
  696.     (comp_target_types): Call it.
  697.     (convert_for_assignment): Check const parity on the ultimate target
  698.     type, too.  And make those warnings pedwarns.
  699.  
  700. Mon May 23 14:11:24 1994  Jason Merrill  (jason@deneb.cygnus.com)
  701.  
  702.     * error.c (dump_char): Use TARGET_* for character constants.
  703.  
  704. Mon May 23 13:03:03 1994  Brendan Kehoe  (brendan@lisa.cygnus.com)
  705.  
  706.     * tree.c (debug_no_list_hash): Make static.
  707.  
  708.     * decl.c (decls_match): Say the types don't match if newdecl ends up
  709.     with a null type, after we've checked if olddecl does.
  710.     (pushdecl): Check if the decls themselves match before looking for
  711.     an extern redeclared as static, to avoid inappropriate and incorrect
  712.     warnings.
  713.  
  714. Fri May 20 14:04:34 1994  Jason Merrill  (jason@deneb.cygnus.com)
  715.  
  716.     * decl.c (grokdeclarator): Make warning about duplicate short, etc.
  717.     a pedwarn.
  718.  
  719.     * typeck.c (build_c_cast): Casting to function or method type is an
  720.     error.
  721.  
  722.     * class.c (finish_struct): Make warning for anonymous class with no
  723.     instances a pedwarn.
  724.  
  725.     * Makefile.in (stamp-parse): Expect a s/r conflict.
  726.  
  727.     * typeck.c (build_modify_expr): pedwarn about using a non-lvalue
  728.     cast as an lvalue.
  729.  
  730. Thu May 19 12:08:48 1994  Jason Merrill  (jason@deneb.cygnus.com)
  731.  
  732.     * cvt.c (type_promotes_to): Make sure bool promotes to int rather
  733.     than unsigned on platforms where sizeof(char)==sizeof(int).
  734.  
  735. Wed May 18 14:27:06 1994  Jason Merrill  (jason@deneb.cygnus.com)
  736.  
  737.     * typeck.c (build_c_cast): Tack on a NOP_EXPR when casting to
  738.     another variant.
  739.     (build_modify_expr): Don't strip NOP_EXPRs, and don't get tricky
  740.     and treat them as lvalues.
  741.  
  742.     * decl.c (shadow_tag): Do complain about forward declarations of
  743.     enums and empty declarations.
  744.     * parse.y: Don't complain about forward declarations of enums and
  745.     empty declarations.
  746.  
  747.     * typeck.c (convert_for_assignment): Complain about changing
  748.     the signedness of a pointer's target type.
  749.  
  750.     * parse.y (stmt): Move duplicated code for checking case values from
  751.     here.
  752.     * decl2.c (check_cp_case_value): To here.  And add a call to
  753.     constant_expression_warning.
  754.  
  755.     * typeck.c (convert_for_assignment): Don't complain about assigning
  756.     a negative value to bool.
  757.  
  758.     * decl.c (init_decl_processing): Make bool unsigned.
  759.  
  760.     * class.c (finish_struct): Allow bool bitfields.
  761.  
  762. Wed May 18 12:35:27 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
  763.  
  764.     * Make-lang.in (c++.install-man): Get g++.1 from $(srcdir)/cp.
  765.  
  766. Wed May 18 03:28:35 1994  Jason Merrill  (jason@deneb.cygnus.com)
  767.  
  768.     * cvt.c (build_type_conversion): Lose special handling of
  769.     truthvalues.
  770.  
  771.     * search.c (dfs_pushdecls): Improve shadowing warning.
  772.  
  773. Tue May 17 13:34:46 1994  Jason Merrill  (jason@deneb.cygnus.com)
  774.  
  775.     * init.c (build_delete): Throw away const and volatile on `this'.
  776.  
  777.     * decl.c (finish_enum): Put the constants in TYPE_VALUES again,
  778.     rather than the enumerators.
  779.     (pushtag): s/cdecl/c_decl/g
  780.  
  781. Mon May 16 23:04:01 1994  Stephen R. van den Berg  (berg@pool.informatik.rwth-aachen.de)
  782.  
  783.     * cp/typeck.c (common_type): Attribute merging.
  784.     (comp_types): Utilise COMP_TYPE_ATTRIBUTES macro.
  785.  
  786.     * cp/parse.y: Revamp attribute parsing.
  787.  
  788. Mon May 16 01:40:34 1994  Jason Merrill  (jason@deneb.cygnus.com)
  789.  
  790.     * decl.c (shadow_tag): Also check for inappropriate use of auto and
  791.     register.
  792.  
  793.     * method.c (build_overload_name): Clarify that the illegal case is a
  794.     pointer or reference to array of unknown bound.
  795.  
  796.     * error.c (dump_type_prefix): Print references to arrays properly.
  797.  
  798.     * typeck.c (various): Be more helpful in pointer
  799.     comparison diagnostics.
  800.  
  801.     * tree.c (lvalue_p): MODIFY_EXPRs are lvalues again.  Isn't this
  802.     fun?
  803.  
  804.     * parse.y: Also catch an error after valid stmts.
  805.  
  806.     * search.c (dfs_init_vbase_pointers): Don't abort because `this' is
  807.     const.
  808.  
  809.     * typeck.c (convert_for_initialization): If call to
  810.     convert_to_reference generated a diagnostic, print out the parm
  811.     number and function decl if any.
  812.  
  813.     * errfn.c (cp_thing): Check atarg1 to determine whether or not we're
  814.     specifying a line, not atarg.
  815.  
  816.     * tree.c (build_cplus_method_type): Always make `this' const.
  817.  
  818.     * decl2.c (grokclassfn): If -fthis-is-variable and this function is
  819.     a constructor or destructor, make `this' non-const.
  820.  
  821.     * typeck.c (build_modify_expr): Don't warn specially about
  822.     assignment to `this' here anymore, since it will be caught by the
  823.     usual machinery.
  824.  
  825.     * various: Disallow specific GNU extensions (variable-size arrays,
  826.     etc.) when flag_ansi is set, not necessarily when pedantic is set,
  827.     so that people can compile with -pedantic-errors for tighter const
  828.     checking and such without losing desirable extensions.
  829.  
  830.     * typeck2.c (build_functional_cast): Call build_method_call with
  831.     LOOKUP_PROTECT.
  832.     (process_init_constructor): Only process FIELD_DECLs.
  833.  
  834.     * decl.c (finish_decl): Also force static consts with no explicit
  835.     initializer that need constructing into the data segment.
  836.  
  837.     * init.c (build_delete): Undo last patch, as it interferes with
  838.     automatic cleanups.
  839.  
  840. Sat May 14 01:59:31 1994  Jason Merrill  (jason@deneb.cygnus.com)
  841.  
  842.     * call.c, class.h, cp-tree.h, cvt.c, decl2.c: Lose old overloading
  843.     code.
  844.  
  845.     * init.c (build_delete): pedwarn about using plain delete to delete
  846.     an array.
  847.  
  848. Fri May 13 16:45:07 1994  Jason Merrill  (jason@deneb.cygnus.com)
  849.  
  850.     * typeck.c (comp_target_types): Be more helpful in contravariance
  851.     warnings, and make them pedwarns.
  852.  
  853.     * decl.c (grokdeclarator): Use decl_context to decide whether or not
  854.     this is an access declaration.
  855.  
  856.     * class.c (finish_struct_bits): Set TYPE_HAS_INT_CONVERSION if it
  857.     has a conversion to enum or bool, too.
  858.  
  859. Fri May 13 16:31:27 1994  Mike Stump  (mrs@cygnus.com)
  860.  
  861.     * method.c (emit_thunk):  Make declaration for
  862.     current_call_is_indirect local (needed for hppa).
  863.  
  864. Fri May 13 16:16:37 1994  Jason Merrill  (jason@deneb.cygnus.com)
  865.  
  866.     * pt.c (uses_template_parms): Grok BOOLEAN_TYPE.
  867.     (tsubst): Ditto.
  868.  
  869. Fri May 13 16:23:32 1994  Mike Stump  (mrs@cygnus.com)
  870.  
  871.     * pt.c (tsubst): If there is already a function for this expansion,
  872.     use it.
  873.     * pt.c (instantiate_template): Ditto.
  874.  
  875. Fri May 13 10:30:42 1994  Brendan Kehoe  (brendan@lisa.cygnus.com)
  876.  
  877.     * parse.y (implicitly_scoped_stmt, simple_stmt case): Use
  878.     kept_level_p for MARK_ENDS argument to expand_end_bindings, to avoid
  879.     generating debug info for unemitted symbols on some systems.
  880.  
  881.     * cp-tree.h (build_static_cast, build_reinterpret_cast,
  882.     build_const_cast): Add declarations.
  883.  
  884. Fri May 13 09:50:31 1994  Mike Stump  (mrs@cygnus.com)
  885.  
  886.     * search.c (expand_indirect_vtbls_init): Fix breakage from Apr 27
  887.     fix.  We now try get_binfo, and if that doesn't find what we want,
  888.     we go back to the old method, which still sometimes fails.
  889.  
  890. Fri May 13 01:43:18 1994  Jason Merrill  (jason@deneb.cygnus.com)
  891.  
  892.     * parse.y (initdcl): Call cplus_decl_attributes on the right
  893.     variable.
  894.     * decl2.c (cplus_decl_attributes): Don't call decl_attributes for
  895.     void_type_node.
  896.  
  897.     * typeck.c (build_binary_op_nodefault): Change result_type for
  898.     comparison ops to bool.
  899.     (build_binary_op): Convert args of && and || to bool.
  900.     * cvt.c (build_default_binary_type_conversion): Convert args of &&
  901.     and || to bool.
  902.     (build_default_unary_type_conversion): Convert arg of ! to bool.
  903.     (type_promotes_to): bool promotes to int.
  904.  
  905. Fri May 13 01:43:18 1994  Mike Stump  (mrs@cygnus.com)
  906.  
  907.     Implement the new builtin `bool' type.
  908.     * typeck.c (build_binary_op_nodefault): Convert args of && and || to
  909.     bool.
  910.     (build_unary_op): Convert arg of ! to bool.
  911.     * parse.y: Know true and false.  Use bool_truthvalue_conversion.
  912.     * method.c (build_overload_value): Know bool.
  913.     (build_overload_name): Ditto.
  914.     * lex.c (init_lex): Set up RID_BOOL.
  915.     * gxx.gperf: Add bool, true, false.
  916.     * error.c (*): Know bool.
  917.     * decl.c (init_decl_processing): Set up bool, true, false.
  918.     * cvt.c (cp_convert): Handle conversion to bool.
  919.     (build_type_conversion): Ditto.
  920.     * *.c: Accept bool where integers and enums are accepted (use
  921.     INTEGRAL_CODE_P macro).
  922.  
  923. Thu May 12 19:13:54 1994  Richard Earnshaw  (rwe11@cl.cam.ac.uk)
  924.  
  925.     * g++.c: Use #ifdef for __MSDOS__, not #if.
  926.  
  927. Thu May 12 18:05:18 1994  Mike Stump  (mrs@cygnus.com)
  928.  
  929.     * decl2.c (lang_f_options): Handle -fshort-temps.  -fshort-temps
  930.     gives old behavior , and destroys temporaries earlier.  Default
  931.     behavior now conforms to the ANSI working paper.
  932.  
  933. Thu May 12 14:45:35 1994  Jason Merrill  (jason@deneb.cygnus.com)
  934.  
  935.     * typeck.c (build_modify_expr): Understand MODIFY_EXPR as an lvalue.
  936.     Use convert_force to convert the result of a recursive call when we
  937.     are dealing with a NOP_EXPR.  Don't automatically wrap MODIFY_EXPRs
  938.     in COMPOUND_EXPRs any more.
  939.     (various): Lose pedantic_lvalue_warning.
  940.     (unary_complex_lvalue): Understand MODIFY_EXPR.
  941.  
  942.     * cvt.c (convert_to_reference): Allow DECL to be error_mark_node if
  943.     we don't know what we're initializing.
  944.  
  945. Wed May 11 01:59:36 1994  Jason Merrill  (jason@deneb.cygnus.com)
  946.  
  947.     * cvt.c (convert_to_reference): Modify to use convtype parameter.
  948.     Only create temporaries when initializing a reference, not when
  949.     casting.
  950.     (cp_convert): New main function.
  951.     (convert): Call cp_convert.
  952.     * cvt.c, decl.c, typeck.c: Fix calls to convert_to_reference.
  953.     * cp-tree.h (CONV_*): New constants used by conversion code for
  954.     selecting conversions to perform.
  955.  
  956.     * tree.c (lvalue_p): MODIFY_EXPRs are no longer lvalues.
  957.  
  958.     * typeck.c (build_{static,reinterpret,const_cast): Stubs that just
  959.     call build_c_cast.
  960.     * parse.y: Add {static,reinterpret,const}_cast.
  961.     * gxx.gperf: Ditto.
  962.  
  963.     * typeck.c (common_type): Allow methods with basetypes of different
  964.     UPTs.
  965.     (comptypes): Deal with UPTs.
  966.     (build_modify_expr): Wrap all MODIFY_EXPRs in a COMPOUND_EXPR.
  967.  
  968.     * pt.c (end_template_decl): Check for multiple definitions of member
  969.     templates.
  970.  
  971.     * call.c (build_method_call): Complain about calling an abstract
  972.     virtual from a constructor.
  973.  
  974.     * typeck.c (pointer_int_sum): Check for the integer operand being 0
  975.     after checking the validity of the pointer operand.
  976.  
  977.     * typeck2.c (digest_init): Pedwarn about string initializer being
  978.     too long.
  979.  
  980. Tue May 10 12:10:28 1994  Jason Merrill  (jason@deneb.cygnus.com)
  981.  
  982.     * decl.c (push_overloaded_decl): Only throw away a builtin if the
  983.     decl in question is the artificial one.
  984.  
  985.     * parse.y (simple_stmt, switch): Use implicitly_scoped_stmt because
  986.     expand_{start,end}_case cannot happen in the middle of a block.
  987.  
  988.     * cvt.c (build_type_conversion_1): Use convert again.
  989.  
  990. Tue May 10 11:52:04 1994  Brendan Kehoe  (brendan@lisa.cygnus.com)
  991.  
  992.     * typeck2.c (digest_init): Make sure we check for signed and
  993.     unsigned chars as well when warning about string initializers.
  994.  
  995.     * init.c (emit_base_init): Check if there's a DECL_NAME on the
  996.     member before trying to do an initialization for it.
  997.  
  998. Tue May 10 11:34:37 1994  Mike Stump  (mrs@cygnus.com)
  999.  
  1000.     * except.c: Don't do anything useful when cross compiling.
  1001.  
  1002. Tue May 10 03:04:13 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1003.  
  1004.     * decl.c (duplicate_decls): Fix up handling of builtins yet again.
  1005.     (push_overloaded_decl): Ditto.
  1006.  
  1007.     * cvt.c (convert): Don't look for void type conversion.
  1008.  
  1009. Mon May  9 18:05:41 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1010.  
  1011.     * init.c (do_friend): Only do a pushdecl for friends, not
  1012.     pushdecl_top_level.
  1013.  
  1014. Mon May  9 13:36:34 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
  1015.  
  1016.     * decl.c (lookup_name_current_level): Put empty statement after
  1017.     the label OUT to make the code valid C.
  1018.  
  1019. Mon May  9 12:20:57 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1020.  
  1021.     * typeck.c (build_binary_op_nodefault): Only complain about
  1022.     comparing void * and a function pointer if void * is smaller.
  1023.  
  1024. Sun May  8 01:29:13 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1025.  
  1026.     * decl.c (lookup_name_current_level): Move through temporary binding
  1027.     levels.
  1028.  
  1029.     * parse.y (already_scoped_stmt): Revive.
  1030.     (simple_stmt): Use it again.
  1031.  
  1032.     * decl.c (poplevel): Always call poplevel recursively if we're
  1033.     dealing with a temporary binding level.
  1034.  
  1035. Sat May  7 10:52:28 1994  Mike Stump  (mrs@cygnus.com)
  1036.  
  1037.     * decl.c (finish_decl): Make sure we run cleanups for initial values
  1038.     of decls.  Cures memory leak.
  1039.     * decl.c (expand_static_init): Ditto for static variables.
  1040.     * decl2.c (finish_file): Ditto for globals.
  1041.  
  1042. Sat May  7 03:57:44 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1043.  
  1044.     * typeck.c (commonparms): Don't complain about redefining default
  1045.     args.
  1046.  
  1047.     * decl.c (duplicate_decls): Don't complain twice about conflicting
  1048.     function decls.
  1049.     (decls_match): Don't look at default args.
  1050.     (redeclaration_error_message): Complain about redefining default
  1051.     args.
  1052.  
  1053.     * call.c (build_overload_call_real): Also deal with guiding
  1054.     declarations coming BEFORE the template decl.
  1055.  
  1056.     * pt.c (unify): Allow different parms to have different
  1057.     cv-qualifiers.
  1058.     (unify): Allow trivial conversions on non-template parms.
  1059.  
  1060. Fri May  6 03:53:23 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1061.  
  1062.     * pt.c (tsubst): Support OFFSET_TYPEs.
  1063.     (unify): Ditto.
  1064.  
  1065.     * decl2.c (finish_decl_parsing): Call push_nested_class with a type.
  1066.  
  1067.     * init.c (build_offset_ref): Fix error message.
  1068.     * search.c (lookup_field): Ditto.
  1069.  
  1070.     * call.c (build_scoped_method_call): Pass binfo to
  1071.     build_method_call.
  1072.     * typeck.c (build_object_ref): Ditto.
  1073.  
  1074.     * typeck2.c (binfo_or_else): Don't return a _TYPE.
  1075.  
  1076.     * class.c (finish_struct): Don't complain about re-use of inherited
  1077.     names or shadowing of type decls.
  1078.     * decl.c (pushdecl_class_level): Ditto.
  1079.  
  1080.     * decl.c (finish_enum): Set the type of all the enums.
  1081.  
  1082.     * class.c (finish_struct): Don't get confused by access decls.
  1083.  
  1084.     * cp-tree.h (TYPE_MAIN_DECL): New macro to get the _DECL for a
  1085.     _TYPE.  You can stop using TYPE_NAME for that now.
  1086.  
  1087.     * parse.y: Lose doing_explicit (check $0 instead).
  1088.     * gxx.gperf: 'template' now has a RID.
  1089.     * lex.h (rid): Ditto.
  1090.     * lex.c (init_lex): Set up the RID for 'template'.
  1091.  
  1092.     * parse.y (type_specifier_seq): typed_typespecs or
  1093.     nonempty_type_quals.  Use it.
  1094.     (handler_args): Fix bogus syntax.
  1095.     (raise_identifier{,s}, optional_identifier): Lose.
  1096.     * except.c (expand_start_catch_block): Use grokdeclarator to parse
  1097.     the catch variable.
  1098.     (init_exception_processing): The second argument to
  1099.     __throw_type_match is ptr_type_node.
  1100.  
  1101.     Fri May  6 07:18:54 1994  Chip Salzenberg  (chip@fin)
  1102.  
  1103.     [ change propagated from c-decl.c of snapshot 940429 ]
  1104.     * cp/decl.c (finish_decl): Setting asmspec_tree should not
  1105.     zero out the old RTL.
  1106.  
  1107. Fri May  6 01:25:38 1994  Mike Stump  (mrs@cygnus.com)
  1108.  
  1109.     Add alpha exception handling support to the compiler.
  1110.     Quick and dirty backend in except.c.
  1111.  
  1112.     * cp/*:  Remove most remnants of old exception handling support.
  1113.     * decl.c (finish_function): Call expand_exception_blocks to put
  1114.     the exception hanlding blocks at the end of the function.
  1115.     * dec.c (hack_incomplete_structures): Make sure expand_decl_cleanup
  1116.     comes after expand_decl_init.
  1117.     * except.c: Reimplementation.
  1118.     * expr.c (cplus_expand_expr): Handle THROW_EXPRs.
  1119.     * lex.c (init_lex): Always have catch, try and throw be reserved
  1120.     words, so that we may always parse exception handling.
  1121.     * parse.y: Cleanup to support new interface into exception handling.
  1122.     * tree.def (THROW_EXPR): Add.
  1123.  
  1124. Thu May  5 17:35:37 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1125.  
  1126.     * parse.y (simple_stmt, for loops): Use implicitly_scoped_stmt.
  1127.     (various): Lose .kindof_pushlevel and partially_scoped_stmt.
  1128.  
  1129. Thu May  5 16:17:27 1994  Kung Hsu  (kung@mexican.cygnus.com)
  1130.  
  1131.     * parse.y (already_scoped_stmt): move expand_end_binding() to
  1132.     fix the unmatched LBB/LBE in stabs.
  1133.  
  1134. Thu May  5 14:36:17 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1135.  
  1136.     * decl.c (set_nested_typename): Set TREE_MANGLED on the new
  1137.     identifiers.
  1138.     (pushdecl): Check TREE_MANGLED.
  1139.     (xref_tag): Ditto.
  1140.     * cp-tree.h (TREE_MANGLED): This identifier is a
  1141.     DECL_NESTED_TYPENAME (named to allow for future use to denote
  1142.     mangled function names as well).
  1143.  
  1144.     Implement inconsistency checking specified in [class.scope0].
  1145.     * decl.c (lookup_name_real): Don't set ICV here after all.
  1146.     (finish_enum): Also set the type of the enumerators themselves.
  1147.     (build_enumerator): Put the CONST_DECL in the list instead of its
  1148.     initial value.
  1149.     (pushdecl_class_level): Check inconsistent use of a name in the
  1150.     class body.
  1151.     * class.c (finish_struct): Check inconsistent use of a name in the
  1152.     class body.  Don't set DECL_CONTEXT on types here anymore.
  1153.     * parse.y (qualified_type_name): Note that the identifier has now
  1154.     been used (as a type) in the class body.
  1155.     * lex.c (do_identifier): Note that the identifier has now been used
  1156.     (as a constant) in the class body.
  1157.     * error.c (dump_decl): Print type and enum decls better.
  1158.  
  1159. Thu May  5 09:35:35 1994  Brendan Kehoe  (brendan@lisa.cygnus.com)
  1160.  
  1161.     * typeck.c (build_modify_expr): Warn about assignment to `this'.
  1162.  
  1163. Wed May  4 15:55:49 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1164.  
  1165.     * init.c (build_delete): Use the global operator delete when
  1166.     requested.
  1167.  
  1168.     * decl.c (lookup_name_real): If we find the type we're looking in a
  1169.     base class while defining a class, set IDENTIFIER_CLASS_VALUE for
  1170.     the type.
  1171.  
  1172.     * class.c (finish_struct): Remove a couple of dependencies on
  1173.     language linkage.
  1174.  
  1175.     * decl.c (pushtag): Classes do nest in extern "C" blocks.
  1176.     (pushdecl): Only set DECL_NESTED_TYPENAME on the canonical one for
  1177.     the type.
  1178.     (pushtag): Remove another dependency on the language linkage.
  1179.  
  1180.     * lex.c (cons_up_default_function): Don't set DECL_CLASS_CONTEXT to
  1181.     a const-qualified type.
  1182.  
  1183.     * decl.c (push_overloaded_decl): Throw away built-in decls here.
  1184.     (duplicate_decls): Instead of here.
  1185.  
  1186. Wed May  4 15:27:40 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  1187.  
  1188.     * typeck.c (get_member_function_from_ptrfunc):  Do The Right
  1189.     Thing (I hope) if we're using thunks.
  1190.  
  1191. Wed May  4 13:52:38 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1192.  
  1193.     * parse.y (specialization): aggr template_type_name ';'.
  1194.     (named_class_head_sans_basetype): Use it.
  1195.     (explicit_instantiation): Ditto.
  1196.     (tmpl.2): Revert.
  1197.  
  1198.     * cvt.c (build_type_conversion_1): Use convert_for_initialization,
  1199.     rather than convert, to do conversions after the UDC.
  1200.  
  1201.     * cp-tree.h (SHARED_MEMBER_P): This member is shared between all
  1202.     instances of the class.
  1203.  
  1204.     * search.c (lookup_field): If the entity found by two routes is the
  1205.     same, it's not ambiguous.
  1206.  
  1207. Wed May  4 12:10:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  1208.  
  1209.     * decl.c (lookup_name_real):  Check for a NULL TREE_VALUE,
  1210.     to prevent the compiler from crashing ...
  1211.  
  1212. Wed May  4 11:19:45 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1213.  
  1214.     * call.c (build_method_call): If we don't have an object, check
  1215.     basetype_path to figure out where to look up the function.
  1216.  
  1217.     * typeck.c (convert_for_initialization): Pass TYPE_BINFO (type) to
  1218.     build_method_call in case exp is NULL_TREE.
  1219.  
  1220. Tue May  3 16:02:53 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  1221.  
  1222.     Give a vtable entries a unique named type, for the sake of gdb.
  1223.     * class.c (build_vtable_entry):  The addres of a thunk now has
  1224.     type vtable_entry_type, not ptr_type_node.
  1225.     * method.c (make_thunk):  Fix type of THUNK_DECL.
  1226.     * class.c (add_virtual_function, override_one_vtable):  Use
  1227.     vfunc_ptr_type_node, instead of ptr_type_node.
  1228.     * cp-tree.h (vfunc_ptr_type_node):  New macro.
  1229.     * decl.c (init_decl_processing):  Make vtable_entry_type
  1230.     be a unique type of pointer to a unique function type.
  1231.  
  1232. Tue May  3 09:20:44 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1233.  
  1234.     * parse.y (do_explicit): Sets doing_explicit to 1.
  1235.     (explicit_instantiation): Use do_explicit rather than TEMPLATE
  1236.     directly, add "do_explicit error" rule.
  1237.     (datadef): Set doing_explicit to 0 after an explicit instantiation.
  1238.     (tmpl.2): Don't instantiate if we see a ';' unless we're doing an
  1239.     explicit instantiation.
  1240.     (named_class_head_sans_basetype): Remove aggr template_type_name
  1241.     ';' again.
  1242.  
  1243. Mon May  2 23:17:21 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1244.  
  1245.     * search.c (lookup_nested_tag): Lose.
  1246.  
  1247.     * decl2.c (grokfield): Set DECL_CONTEXT on TYPE_DECLs.
  1248.     (lookup_name_nonclass): Lose.
  1249.  
  1250.     * decl.c (poplevel_class): Add force parameter.
  1251.     (lookup_name_real): Fix handling of explicit scoping which specifies
  1252.     a class currently being defined.  Add 'nonclass' argument.
  1253.     (lookup_name, lookup_name_nonclass): Shells for lookup_name_real.
  1254.  
  1255.     * class.c (finish_struct): Don't unset IDENTIFIER_CLASS_VALUEs here.
  1256.     (popclass): Force clearing of IDENTIFIER_CLASS_VALUEs if we're being
  1257.     called from finish_struct.
  1258.  
  1259. Mon May  2 19:06:21 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  1260.  
  1261.     * decl.c (init_decl_processing), cp-tree.h:  Removed memptr_type.
  1262.     (It seeems redundant, given build_ptrmemfunc_type.)
  1263.     * typeck.c (get_member_function_from_ptrfunc), gc.c (build_headof,
  1264.     build_classof):  Use vtable_entry_type instead of memptr_type.
  1265.     * method.c (emit_thunk):  Call poplevel with functionbody==0
  1266.     to prevent DECL_INITIAL being set to a BLOCK.
  1267.  
  1268. Mon May  2 15:02:11 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1269.  
  1270.     * parse.y (named_class_head_sans_basetype): Add "aggr
  1271.     template_type_name ';'" rule for forward declaration of
  1272.     specializations.
  1273.  
  1274. Mon May  2 15:02:11 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1275.  
  1276.     * class.c (instantiate_type): Deal with pmf's.
  1277.  
  1278.     * Make-lang.in (cc1plus): Don't depend on OBJS or BC_OBJS, since
  1279.     stamp-objlist does.
  1280.  
  1281.     * Makefile.in (../cc1plus): Depend on OBJDEPS.
  1282.     (OBJDEPS): Dependency version of OBJS.
  1283.  
  1284. Mon May  2 12:51:31 1994  Kung Hsu  (kung@mexican.cygnus.com)
  1285.  
  1286.     * search.c (dfs_debug_mark): unmark TYPE_DECL_SUPPRESS_DEBUG, not
  1287.     DECL_IGNORED_P.
  1288.  
  1289. Fri Apr 29 12:29:56 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1290.  
  1291.     * class.c (finish_struct): Clear out memory of local tags.  And
  1292.     typedefs.
  1293.  
  1294.     * decl2.c (grokclassfn): Don't set DECL_CONTEXT to a cv-qualified
  1295.     type.
  1296.     * search.c (get_matching_virtual): Be more helpful in error message.
  1297.  
  1298.     * *: Use DECL_ARTIFICIAL (renamed from DECL_SYNTHESIZED).
  1299.  
  1300.     * lex.c (default_assign_ref_body): Expect TYPE_NESTED_NAME to work.
  1301.     (default_copy_constructor_body): Ditto.
  1302.  
  1303.     * class.c (finish_struct): Don't gratuitously create multiple decls
  1304.     for nested classes.
  1305.  
  1306. Thu Apr 28 23:39:38 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1307.  
  1308.     Avoid clobbering the arg types of other functions when reverting
  1309.     static member functions.
  1310.     * decl.c (revert_static_member_fn): Rearrange arguments, don't
  1311.     require values for 'fn' and 'argtypes', add warning to comment
  1312.     above.
  1313.     (decls_match): Rearrange arguments in call to rsmf.
  1314.     (grok_op_properties): Don't pass values for fn and argtypes.
  1315.     * pt.c (instantiate_template): Don't pass values for fn and argtypes.
  1316.  
  1317. Thu Apr 28 16:29:11 1994  Doug Evans  (dje@canuck.cygnus.com)
  1318.  
  1319.     * Make-lang.in (cc1plus): Depend on stamp-objlist.
  1320.     * Makefile.in (BC_OBJS): Delete.
  1321.     (OBJS): Cat ../stamp-objlist to get language independent files.
  1322.     Include ../c-common.o.
  1323.     (../cc1plus): Delete reference to BC_OBJS.
  1324.  
  1325. Thu Apr 28 02:12:08 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1326.  
  1327.     * search.c (compute_access): No really, deal with static members
  1328.     properly.  Would I lie to you?
  1329.  
  1330.     Implement lexical hiding of function declarations.
  1331.     * pt.c (tsubst): Use lookup_name to look for function decls to guide
  1332.     instantiation.
  1333.     * method.c (build_opfncall): Use lookup_name_nonclass to look for
  1334.     non-member functions.
  1335.     * init.c (do_friend): Use lookup_name_nonclass to look for
  1336.     functions.
  1337.     * error.c (ident_fndecl): Use lookup_name to look for functions.
  1338.     * decl2.c (lookup_name_nonclass): New function, skips over
  1339.     CLASS_VALUE.
  1340.     * decl.c (struct binding_level): Lose overloads_shadowed field.
  1341.     (poplevel): Don't deal with overloads_shadowed.
  1342.     (push_overloaded_decl): Do lexical hiding for functions.
  1343.     * class.c (instantiate_type): Don't check non-members if we have
  1344.     members with the same name.
  1345.     * call.c (build_method_call): Use lookup_name_nonclass instead of
  1346.     IDENTIFIER_GLOBAL_VALUE to check for non-member functions.
  1347.     (build_overload_call_real): Ditto.
  1348.  
  1349.     * decl.c (duplicate_decls): Check for ambiguous overloads here.
  1350.     (push_overloaded_decl): Instead of here.
  1351.     
  1352.     * decl.c (pushdecl): Back out Chip's last change.
  1353.  
  1354.     * decl.c (grok_op_properties): operators cannot be static members.
  1355.  
  1356.     * cp-tree.h (DECL_SYNTHESIZED): DECL_SOURCE_LINE == 0
  1357.     (SET_DECL_SYNTHESIZED): DECL_SOURCE_LINE = 0
  1358.     * lex.c (cons_up_default_function): Use SET_DECL_SYNTHESIZED.
  1359.  
  1360.     * method.c (do_inline_function_hair): Don't put friends of local
  1361.     classes into global scope, either.
  1362.  
  1363.     * typeck2.c (build_functional_cast): Don't look for a function call
  1364.     interpretation.
  1365.  
  1366. Thu Apr 28 15:19:46 1994  Mike Stump  (mrs@cygnus.com)
  1367.  
  1368.     * cp-tree.h: disable use of backend EH.
  1369.  
  1370. Wed Apr 27 21:01:24 1994  Doug Evans  (dje@canuck.cygnus.com)
  1371.  
  1372.     * Make-lang.in (c++.distdir): mkdir tmp/cp first.
  1373.     * Makefile.in (INCLUDES): Move definition to same place as
  1374.     parent makefile.
  1375.     (ALLOCA): Define.
  1376.     (OLDAR_FLAGS): Delete.
  1377.     (OLDCC): Define.
  1378.     (DIR): Delete.
  1379.     (CLIB): Define.
  1380.     (####site): Delete.
  1381.     (SUBDIR_USE_ALLOCA): Don't use ALLOCA if compiling with gcc.
  1382.  
  1383. Wed Apr 27 19:10:04 1994  Kung Hsu  (kung@mexican.cygnus.com)
  1384.  
  1385.     * decl.c (xref_tag): not to use strstr(), it's not available on
  1386.     all platforms.
  1387.  
  1388. Wed Apr 27 18:10:12 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1389.  
  1390.     * class.c (finish_struct): Resolve yet another class/pmf confusion.
  1391.  
  1392.     * call.c (build_overload_call_real): Don't take the single-function
  1393.     shortcut if we're dealing with an overloaded operator.
  1394.  
  1395. Wed Apr 27 17:35:37 1994  Mike Stump  (mrs@cygnus.com)
  1396.  
  1397.     * search.c (get_base_distance): Search the virtual base class
  1398.     binfos, incase someone wants to convert to a real virtual base
  1399.     class.
  1400.     * search.c (expand_indirect_vtbls_init): Use convert_pointer_to_real
  1401.     instead of convert_pointer_to, as it now will work.
  1402.  
  1403. Wed Apr 27 15:36:49 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1404.  
  1405.     * cvt.c (convert_to_reference): Don't complain about casting away
  1406.     const and volatile.
  1407.  
  1408.     * typeck.c (build_unary_op): References are too lvalues.
  1409.  
  1410. Wed Apr 27 13:58:05 1994  Mike Stump  (mrs@cygnus.com)
  1411.  
  1412.     * class.c (override_one_vtable): We have to prepare_fresh_vtable
  1413.     before we modify it, not after, also, we cannot reuse an old vtable,
  1414.     once we commit to a new vtable.  Implement ambiguous overrides in
  1415.     virtual bases as abstract.  Hack until we make the class
  1416.     ill-formed.
  1417.  
  1418. Wed Apr 27 01:17:08 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1419.  
  1420.     * parse.y (unary_expr): Expand new_placement[opt] and
  1421.     new_initializer[opt] inline.
  1422.  
  1423.     * search.c (lookup_fnfields): Don't throw away the inheritance
  1424.     information here, either.
  1425.     (compute_access): Handle static members properly.
  1426.  
  1427.     * init.c (build_member_call): Always set basetype_path, and pass it
  1428.     to lookup_fnfields.
  1429.  
  1430.     * search.c (lookup_field): Deal properly with the case where
  1431.     xbasetype is a chain of binfos; don't throw away the inheritance
  1432.     information.
  1433.     (compute_access): protected_ok always starts out at 0.
  1434.  
  1435.     * init.c (resolve_offset_ref): Don't cast `this' to the base type
  1436.     until we've got our basetype_path.
  1437.  
  1438.     * cp-tree.h (IS_OVERLOAD_TYPE): aggregate or enum.
  1439.  
  1440.     * cvt.c (build_up_reference): Use build_pointer_type rather than
  1441.     TYPE_POINTER_TO.
  1442.  
  1443.     * call.c (convert_harshness_ansi): Call type_promotes_to for reals
  1444.     as well.
  1445.  
  1446.     * cvt.c (type_promotes_to): Retain const and volatile, add
  1447.     float->double promotion.
  1448.  
  1449.     * decl.c (grokdeclarator): Don't bash references to arrays into
  1450.     references to pointers in function parms.  Use type_promotes_to.
  1451.  
  1452. Tue Apr 26 23:44:36 1994  Mike Stump  (mrs@cygnus.com)
  1453.  
  1454.     Finish off Apr 19th work.
  1455.  
  1456.     * class.c (finish_struct_bits): Rename has_abstract_virtuals to
  1457.     might_have_abstract_virtuals.
  1458.     * class.c (strictly_overrides, override_one_vtable,
  1459.     merge_overrides): New routines to handle virtual base overrides.
  1460.     * class.c (finish_struct): Call merge_overrides to handle overrides
  1461.     in virtual bases.
  1462.  
  1463. Tue Apr 26 12:45:53 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1464.  
  1465.     * typeck.c (build_function_call): Call build_function_call_real with
  1466.     LOOKUP_NORMAL.
  1467.  
  1468.     * *: Don't deal with TYPE_EXPRs.
  1469.  
  1470.     * tree.c (lvalue_p): If the type of the expression is a reference,
  1471.     it's an lvalue.
  1472.  
  1473.     * cvt.c (convert_to_reference): Complain about passing const
  1474.     lvalues to non-const references.
  1475.     (convert_from_reference): Don't arbitrarily throw away const and
  1476.     volatile on the target type.
  1477.  
  1478.     * parse.y: Simplify and fix rules for `new'.
  1479.  
  1480.     * decl.c (grok_op_properties): operator void is illegal.
  1481.  
  1482. Mon Apr 25 02:36:28 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1483.  
  1484.     * parse.y (components): Anonymous bitfields can still have declspecs.
  1485.  
  1486.     * decl.c (pushdecl): Postpone handling of function templates like we
  1487.     do C functions.
  1488.  
  1489.     * search.c (expand_indirect_vtbls_init): Fix infinite loop when
  1490.     convert_pointer_to fails.
  1491.  
  1492.     * call.c (compute_conversion_costs_ansi): A user-defined conversion
  1493.     by itself is better than that UDC followed by standard conversions.
  1494.     Don't treat integers and reals specially.
  1495.  
  1496.     * cp-tree.h: Declare flag_ansi.
  1497.  
  1498.     * typeck.c (c_expand_return): pedwarn on return in void function
  1499.     even if the expression is of type void.
  1500.     (build_c_cast): Don't do as much checking for casts to void.
  1501.     (build_modify_expr): pedwarn about array assignment if this code
  1502.     wasn't generated by the compiler.
  1503.  
  1504.     * tree.c (lvalue_p): A comma expression is an lvalue if its second
  1505.     operand is.
  1506.  
  1507.     * typeck.c (default_conversion): Move code for promoting enums and
  1508.     ints from here.
  1509.     * cvt.c (type_promotes_to): To here.
  1510.     * call.c (convert_harshness_ansi): Use type_promotes_to.  Also fix
  1511.     promotion semantics for reals.
  1512.  
  1513. Sun Apr 24 16:52:51 1994  Doug Evans  (dje@canuck.cygnus.com)
  1514.  
  1515.     * Make-lang.in (c++.install-common): Check for g++-cross.
  1516.     * Makefile.in: Remove Cygnus cruft.
  1517.     (config.status): Delete.
  1518.     (RTL_H): Define.
  1519.     (TREE_H): Use complete pathname, some native makes have minimal
  1520.     VPATH support.
  1521.     (*.o): Use complete pathname to headers in parent dir.
  1522.     (doc, info, dvi): Delete.
  1523.  
  1524. Sun Apr 24 16:52:51 1994  Doug Evans  (dje@canuck.cygnus.com)
  1525.  
  1526.     * Make-lang.in (c++.install-common): Check for g++-cross.
  1527.     * Makefile.in: Remove Cygnus cruft.
  1528.     (config.status): Delete.
  1529.     (RTL_H): Define.
  1530.     (TREE_H): Use complete pathname, some native makes have minimal
  1531.     VPATH support.
  1532.     (*.o): Use complete pathname to headers in parent dir.
  1533.     (doc, info, dvi): Delete.
  1534.  
  1535. Sun Apr 24 00:47:49 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1536.  
  1537.     * decl.c (pushdecl): Avoid redundant warning on redeclaring function
  1538.     with different return type.
  1539.     (decls_match): Compare return types strictly.
  1540.  
  1541. Fri Apr 22 12:55:42 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1542.  
  1543.     * cvt.c (build_type_conversion): Do try to convert through other
  1544.     pointers.  This will fail if the class defines multiple pointer
  1545.     conversions.
  1546.  
  1547.     * error.c (dump_type_prefix): Print out pointers to arrays properly.
  1548.     (dump_type_suffix): Ditto.  (was 'int *[]', now 'int (*)[]')
  1549.  
  1550.     * typeck.c (build_unary_op): Disallow ++/-- on pointers to
  1551.     incomplete type.
  1552.  
  1553.     * decl.c (duplicate_decls): Check mismatched TREE_CODES after
  1554.     checking for shadowing a builtin.  If we're redeclaring a builtin
  1555.     function, bash the old decl to avoid an ambiguous overload.
  1556.  
  1557.     * cvt.c (convert_to_reference): Don't force arrays to decay here.
  1558.  
  1559.     * tree.c (lvalue_p): A MODIFY_EXPR is an lvalue.
  1560.  
  1561.     * decl.c (duplicate_decls): Don't assume that the decls will have
  1562.     types.
  1563.  
  1564.     Mon Apr 18 11:35:32 1994  Chip Salzenberg  (chip@fin.uucp)
  1565.  
  1566.     [ cp/* changes propagated from c-* changes in 940318 snapshot ]
  1567.     * c-decl.c (pushdecl): Warn if type mismatch with another external decl
  1568.     in a global scope.
  1569.  
  1570.     Fri Apr 22 06:38:56 1994  Chip Salzenberg  (chip@fin.uucp)
  1571.  
  1572.     * cp/typeck2.c (signature_error): Use cp_error for "%T".
  1573.  
  1574.     Mon Apr 18 11:59:59 1994  Chip Salzenberg  (chip@fin.uucp)
  1575.  
  1576.     [ cp/* changes propagated from c-* changes in 940415 snapshot ]
  1577.     * cp/decl.c (duplicate_decls, pushdecl, builtin_function):
  1578.     Use DECL_FUNCTION_CODE instead of DECL_SET_FUNCTION_CODE.
  1579.  
  1580.     Mon Apr 18 11:55:18 1994  Chip Salzenberg  (chip@fin.uucp)
  1581.  
  1582.     [ cp/* changes propagated from c-* changes in 940409 snapshot ]
  1583.     * cp/decl.c (duplicate_decls): Put new type in same obstack as
  1584.     old ones, or permanent if old ones in different obstacks.
  1585.  
  1586.     Mon Apr 18 11:48:49 1994  Chip Salzenberg  (chip@fin.uucp)
  1587.  
  1588.     [ cp/* changes propagated from c-* changes in 940401 snapshot ]
  1589.     * cp/parse.y (attrib): Handle string args as expressions,
  1590.     merging the two rules.  `mode' attribute now takes a string arg.
  1591.     Delete the rule for an identifier as arg.
  1592.  
  1593.     Mon Apr 18 11:24:00 1994  Chip Salzenberg  (chip@fin.uucp)
  1594.  
  1595.     [ cp/* changes propagated from c-* changes in 940312 snapshot ]
  1596.     * cp/typeck.c (pointer_int_sum): Multiplication should be done signed.
  1597.     (pointer_diff): Likewise the division.
  1598.  
  1599.     Sun Mar  6 19:43:39 1994  Chip Salzenberg  (chip@fin.uucp)
  1600.  
  1601.     [ cp/* changes propagated from c-* changes in 940304 snapshot ]
  1602.     * cp/decl.c (finish_decl): Issue warning for large objects,
  1603.     if requested.
  1604.  
  1605.     Sat Feb 19 22:20:32 1994  Chip Salzenberg  (chip@fin.uucp)
  1606.  
  1607.     [ cp/* changes propagated from c-* changes in 940218 snapshot ]
  1608.     * cp/parse.y (attrib): Handle attribute ((section ("string"))).
  1609.     * cp/decl.c (duplicate_decls): Merge section name into new decl.
  1610.  
  1611.     Tue Feb  8 09:49:17 1994  Chip Salzenberg  (chip@fin.uucp)
  1612.  
  1613.     [ cp/* changes propagated from c-* changes in 940206 snapshot ]
  1614.     * cp/typeck.c (signed_or_unsigned_type): Check for any
  1615.     INTEGRAL_TYPE_P not just INTEGER_TYPE.
  1616.  
  1617.     Mon Dec  6 13:35:31 1993  Norbert Kiesel  (norbert@i3.INformatik.rwth-aachen.DE)
  1618.  
  1619.     * cp/decl.c (finish_enum): Start from 0 when determining precision
  1620.     for short enums.
  1621.  
  1622.     Fri Dec  3 17:07:58 1993  Ralph Campbell  (ralphc@pyramid.COM)
  1623.  
  1624.     * cp/parse.y (unary_expr): Look at $1 for tree_code rather than
  1625.     casting $$.
  1626.  
  1627.     Wed Nov 17 19:22:09 1993  Chip Salzenberg  (chip@fin.uucp)
  1628.  
  1629.     * cp/typeck.c (build_binary_op_nodefault): Propagate code
  1630.     from C front-end to optimize unsigned short division.
  1631.     (build_conditional_expr): Fix bug in "1 ? 42 : (void *) 8".
  1632.  
  1633.     Wed Nov 17 19:17:18 1993  Chip Salzenberg  (chip@fin.uucp)
  1634.  
  1635.     * cp/call.c (convert_harshness_ansi): Given an (e.g.) char
  1636.     constant, prefer 'const char &' to 'int'.
  1637.  
  1638.     Wed Feb  3 13:11:48 1993  Chip Salzenberg  (chip@fin.uucp)
  1639.  
  1640.     * cp/class.c (finish_struct_methods):  Handle multiple
  1641.     constructors in fn_fields list.
  1642.  
  1643. Fri Apr 22 12:48:10 1994  Kung Hsu  (kung@mexican.cygnus.com)
  1644.  
  1645.     * class.c (finish_struct): use TYPE_DECL_SUPPRESS_DEBUG to flag
  1646.     types not to be dumped in stabs, like types in #pragma interface.
  1647.     * decl.c (init_decl_processing): use TYPE_DECL_SUPPRESS_DEBUG to
  1648.     mark unknown type.
  1649.  
  1650. Fri Apr 22 03:27:26 1994  Doug Evans  (dje@cygnus.com)
  1651.  
  1652.     * Language directory reorganization.
  1653.     See parent makefile.
  1654.  
  1655. Fri Apr 22 03:27:26 1994  Doug Evans  (dje@cygnus.com)
  1656.  
  1657.     * Language directory reorganization.
  1658.     See parent makefile.
  1659.  
  1660. Thu Apr 21 18:27:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  1661.  
  1662.     * cp-tree.h (THUNK_DELTA):  It is normally negative, so
  1663.     use signed .i variant of frame_size rather than unsigned .u.
  1664.     * cp-tree.h (VTABLE_NAME_FORMAT):  If flag_vtable_thunks,
  1665.     use "VT" rather than "vt" due to binary incompatibility.
  1666.     * class.c (get_vtable_name):  Use strlen of VTABLE_NAME_FORMAT,
  1667.     rather than sizeof, since it is now an expression.
  1668.     * class.c (modify_one_vtable):  Modify to skip initial element
  1669.     containing a count of the vtable.
  1670.  
  1671. Thu Apr 21 00:09:02 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1672.  
  1673.     * lex.c (check_newline): Force interface_unknown on main input file.
  1674.  
  1675.     * pt.c (do_pending_expansions): Always emit functions that have been
  1676.     explicitly instantiated.
  1677.     (do_function_instantiation): Set DECL_EXPLICITLY_INSTANTIATED.
  1678.     (do_type_instantiation): Set CLASSTYPE_VTABLE_NEEDS_WRITING and
  1679.     DECL_EXPLICITLY_INSTANTIATED on all my methods.
  1680.     * parse.y (explicit_instantiation): Call do_type_instantiation for
  1681.     types.
  1682.     * decl2.c (finish_vtable_vardecl): Call import_export_vtable.
  1683.     * decl.c (start_function): Don't set DECL_EXTERNAL on a function
  1684.     that has been explicitly instantiated.
  1685.     * cp-tree.h (DECL_EXPLICITLY_INSTANTIATED): Alias for
  1686.     DECL_LANG_FLAG_4.
  1687.     * class.c: Move import_export_vtable to decl2.c, and comment out all
  1688.     uses.
  1689.  
  1690. Wed Apr 20 16:51:06 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1691.  
  1692.     * lex.c (process_next_inline): Don't muck with DECL_INLINE.
  1693.     (do_pending_inlines): Ditto.
  1694.  
  1695. Tue Apr 19 22:25:41 1994  Mike Stump  (mrs@cygnus.com)
  1696.  
  1697.     Reimplement vtable building, and most vtable pointer setting.
  1698.     Allows for earier maintenance, easier understandability, and most
  1699.     importantly, correct semantics.
  1700.  
  1701.     * class.c (build_vtable): Removed unneeded
  1702.     SET_BINFO_VTABLE_PATH_MARKED.
  1703.     * class.c (prepare_fresh_vtable): Ditto.  Added argument.
  1704.     * class.c (modify_vtable_entry): General cleanup.
  1705.     * class.c (related_vslot, is_normal, modify_other_vtable_entries,
  1706.     modify_vtable_entries): Removed.
  1707.     * class.c (add_virtual_function): General cleanup.
  1708.     * class.c (finish_base_struct): Setup BINFO_VTABLE and
  1709.     BINFO_VIRTUALS as early as we can, so that modify_all_vtables can
  1710.     work.
  1711.     * class.c (finish_vtbls): New routine, mostly from
  1712.     unmark_finished_struct.
  1713.     * class.c (overrides): New routine.
  1714.     * class.c (modify_one_vtable): New routine, mostly from
  1715.     modify_other_vtable_entries and modify_vtable_entries.
  1716.     * class.c (modify_all_direct_vtables, modify_all_indirect_vtables,
  1717.     modify_all_vtables): New routines.
  1718.     * class.c (finish_struct): Added arguemnt to prepare_fresh_vtable
  1719.     call.  General cleanup on how pending_hard_virtuals are handled.
  1720.     General cleanup on modifying vtables.  Use finish_vtbls, instead of
  1721.     unmark_finished_struct.
  1722.     * cp-tree.h (init_vtbl_ptrs, expand_direct_vtbls_init,
  1723.     get_first_matching_virtual, get_matching_virtual,
  1724.     expand_vbase_vtables_init,  expand_indirect_vtbls_init): Update.
  1725.     * cvt.c (convert_pointer_to_real): cleanup error message.
  1726.     * decl.c (grokfndecl): General cleanup.
  1727.     * decl.c (finish_function): Change init_vtbl_ptrs call to
  1728.     expand_direct_vtbls_init.  Change expand_vbase_vtables_init call to
  1729.     expand_indirect_vtbls_init.
  1730.     * init.c (expand_virtual_init): Remove unneeded argument.
  1731.     * init.c (init_vtbl_ptrs): Rename to expand_direct_vtbls_init, added
  1732.     two arguments to make more general.  Made more general.  Now can be
  1733.     used for vtable pointer initialization from virtual bases.
  1734.     * init.c (emit_base_init): Change expand_vbase_vtables_init call to
  1735.     expand_indirect_vtbls_init.  Change init_vtbl_ptrs call to
  1736.     expand_direct_vtbls_init.
  1737.     * init.c (expand_virtual_init): General cleanup.
  1738.     * init.c (expand_default_init): Change expand_vbase_vtables_init
  1739.     call to expand_indirect_vtbls_init.
  1740.     * init.c (expand_recursive_init_1): Change expand_vbase_vtables_init
  1741.     call to expand_indirect_vtbls_init.
  1742.     * init.c (expand_recursive_init): Change expand_vbase_vtables_init
  1743.     call to expand_indirect_vtbls_init.
  1744.     * search.c (get_first_matching_virtual): Rename to
  1745.     get_matching_virtual.  General cleanup and remove setting of
  1746.     DECL_CONTEXT.  That is now done in a cleaner way in
  1747.     modify_vtable_entry and add_virtual_function.
  1748.     * search.c (expand_vbase_vtables_init): Rename to
  1749.     expand_indirect_vtbls_init.  General cleanup.  Use
  1750.     expand_direct_vtbls_init to do hard work.  Ensures that _all_ vtable
  1751.     pointers from virtual bases are set up.
  1752.     * search.c (bfs_unmark_finished_struct, unmark_finished_struct):
  1753.     Removed.
  1754.  
  1755.     * *.[chy]: Remove support for VTABLE_USES_MASK.
  1756.  
  1757. Tue Apr 19 12:51:59 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1758.  
  1759.     * cvt.c (convert_to_reference): Use NOP_EXPRs to switch between
  1760.     reference and pointer types instead of bashing the types directly.
  1761.  
  1762.     * call.c (build_overload_call_real): Use the TREE_CODE to determine
  1763.     whether the function is overloaded or not, rather than
  1764.     TREE_OVERLOADED.
  1765.     * *: Remove all uses of TREE_OVERLOADED.
  1766.  
  1767.     * decl.c (grokdeclarator): Only complain about initializing const
  1768.     fields when -ansi or -pedantic.
  1769.  
  1770. Tue Apr 19 12:42:42 1994  Doug Evans  (dje@canuck.cygnus.com)
  1771.  
  1772.     * cp-tree.h (THUNK_DELTA): frame_size is now a union.
  1773.  
  1774. Mon Apr 18 00:17:13 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1775.  
  1776.     Do overloading on a block-by-block basis, not function-by-function.
  1777.     * decl.c: Lose overloads_to_forget.
  1778.     (struct binding_level): Add overloads_shadowed field.
  1779.     (poplevel): Restore overloads_shadowed.
  1780.     (push_overloaded_decl): Use overloads_shadowed instead of
  1781.     overloads_to_forget.
  1782.     (finish_function): Don't look at overloads_to_forget.
  1783.  
  1784.     Copy enum_overflow logic from c-decl.c.
  1785.     * decl.c (start_enum): Initialize enum_overflow.
  1786.     (build_enumerator): Use enum_overflow.  Also use current_scope().
  1787.  
  1788.     * search.c (current_scope): Move Brendan's comment from
  1789.     build_enumerator here.
  1790.  
  1791.     * typeck.c (convert_for_assignment): Change warnings to pedwarns for
  1792.     discarding const/volatile.
  1793.  
  1794. Sat Apr 16 01:18:21 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1795.  
  1796.     * typeck.c (comp_target_parms): Accept TEMPLATE_TYPE_PARMs on the rhs.
  1797.     (comp_target_types): Ditto.
  1798.  
  1799.     * decl.c (lookup_name): Don't unset got_scope here.
  1800.  
  1801.     * spew.c (yylex): Only replace yylval with the TYPE_NESTED_NAME if
  1802.     got_scope != NULL_TREE.
  1803.  
  1804. Fri Apr 15 16:36:33 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1805.  
  1806.     Horrible kludge to prevent templates from being    instantiated by
  1807.     their base classes.
  1808.     * parse.y (template_instantiate_once): Unset TYPE_BEING_DEFINED
  1809.     before we get to left_curly.
  1810.     * pt.c (instantiate_class_template): Set TYPE_BEING_DEFINED.
  1811.  
  1812.     * error.c (dump_decl): If it's a typedef, print out the name of the
  1813.     decl, not just the underlying type.
  1814.  
  1815.     * decl.c (pushdecl): If the old duplicate decl was a TYPE_DECL,
  1816.     update the IDENTIFIER_TYPE_VALUE of its name.
  1817.  
  1818.     * decl2.c (finish_file): When processing the initializer for a
  1819.     static member, pretend that the dummy function is a member of the
  1820.     same class.
  1821.  
  1822. Fri Apr 15 15:56:35 1994  Kung Hsu  (kung@mexican.cygnus.com)
  1823.  
  1824.     * class.c (build_vtable_entry): revert Apr 4 change.
  1825.     * decl2.c (mark_vtable_entries): replace pure virtual function
  1826.     decl with abort's.
  1827.  
  1828. Fri Apr 15 13:49:33 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1829.  
  1830.     * typeck.c (build_conditional_expr): Pedwarn on pointer/integer
  1831.     mismatch, and don't pedwarn on 0/function pointer mismatch.
  1832.  
  1833.     * typeck2.c (digest_init): Lose code for special handling of unions.
  1834.     (process_init_constructor): Since they're handled just fine here.
  1835.     Pedwarn on excess elements.
  1836.  
  1837.     * decl2.c (grokfield): Complain about local class method declaration
  1838.     without definition.
  1839.  
  1840. Fri Apr 15 13:19:40 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  1841.  
  1842.     * method.c (emit_thunk):  Add extern declaration for
  1843.     current_call_is_indirect (needed for hppa).
  1844.  
  1845. Thu Apr 14 16:12:31 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1846.  
  1847.     Improve local class support; allow classes in different blocks to
  1848.     have the same name.
  1849.     * decl.c (pushtag): Support local classes better.
  1850.     (pushdecl_nonclass_level): New function for pushing mangled decls of
  1851.     nested types into the appropriate scope.
  1852.     (xref_defn_tag): Use pushdecl_nonclass_level instead of
  1853.     pushdecl_top_level. 
  1854.     (grokfndecl): Don't mess with IDENTIFIER_GLOBAL_VALUE for local
  1855.     class methods.
  1856.     * method.c (do_inline_function_hair): Ditto.
  1857.  
  1858.     * class.c (finish_struct): It is legal for a class with no
  1859.     constructors to have nonstatic const and reference members.
  1860.  
  1861. Thu Apr 14 07:15:11 1994  Brendan Kehoe  (brendan@lisa.cygnus.com)
  1862.  
  1863.     * decl.c (push_overloaded_decl): Avoid giving errors about
  1864.     built-ins, since duplicate_decls will have given warnings/errors
  1865.     for them.
  1866.  
  1867. Thu Apr 14 03:45:12 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1868.  
  1869.     * cvt.c (convert_to_reference): Warn about casting pointer type to
  1870.     reference type when this is probably not what they wanted.
  1871.  
  1872. Wed Apr 13 13:12:35 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  1873.  
  1874.     * decl.c (finish_decl):  Don't mindlessly set TREE_USED for
  1875.     static consts any more (toplev.c has now been modified to
  1876.     not emit warnings if they are unused).
  1877.  
  1878. Wed Apr 13 00:22:35 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1879.  
  1880.     * decl.c (grok_op_properties): If op new/delete get here with
  1881.     METHOD_TYPEs, do a revert_static_member_fn.
  1882.  
  1883.     * cp-tree.h (IDENTIFIER_CLASS_TYPE_VALUE): Lose.
  1884.     * init.c (is_aggr_typedef): Don't look at
  1885.     IDENTIFIER_CLASS_TYPE_VALUE.
  1886.     (get_aggr_from_typedef): Ditto.
  1887.     (get_type_value): Ditto.
  1888.     * call.c (build_scoped_method_call): Don't rely on overloaded
  1889.     template names having IDENTIFIER_CLASS_VALUE set.
  1890.  
  1891.     * parse.y (component_decl_1, fn.def2): Revert rules for
  1892.     constructors.
  1893.     (component_decl_1, fn.def2): Use $1 instead of $$, since $$ is being
  1894.     clobbered.
  1895.  
  1896.     * decl.c (start_function): Only warn about `void main()' if pedantic
  1897.     || warn_return_type.
  1898.  
  1899. Tue Apr 12 02:14:17 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1900.  
  1901.     Clean up overloading of the template name.
  1902.     * class.c (pushclass): overload the template name whenever pushing
  1903.     into the scope of a template class, not just if it is
  1904.     uninstantiated.
  1905.     (popclass): Correspondingly.
  1906.     * search.c (push_class_decls): Don't overload_template_name.
  1907.     * pt.c (overload_template_name): Don't set IDENTIFIER_LOCAL_VALUE or
  1908.     DECL_CONTEXT on things.
  1909.     * parse.y (left_curly): Don't overload_template_name.
  1910.     * class.c (finish_struct): Don't undo_template_name_overload.
  1911.  
  1912.     * method.c (build_opfncall): Only pass one argument to global op
  1913.     delete.
  1914.  
  1915.     * call.c (build_method_call): Use TYPE_VEC_DELETE_TAKES_SIZE to
  1916.     decide how many arguments to use for vec delete.
  1917.  
  1918.     * decl.c (grok_op_properties): Be consistent in modifying
  1919.     current_class_type.
  1920.     (grokdeclarator): Only complain about function decls with no return
  1921.     type if we're being pedantic.
  1922.  
  1923. Mon Apr 11 00:10:53 1994  Jason Merrill  (jason@deneb.cygnus.com)
  1924.  
  1925.     Add support for operator new [] and operator delete [].
  1926.  
  1927.     * tree.def: Add VEC_NEW_EXPR and VEC_DELETE_EXPR.
  1928.     * ptree.c (print_lang_type): Indicate vec new/delete.
  1929.     * parse.y: Support vec new/delete.
  1930.     * method.c (build_decl_overload): Deal with vec new/delete.
  1931.     (build_opfncall): Ditto.
  1932.     * lex.c (init_lex): Set up values of ansi_opname and opname_tab for
  1933.     vec new/delete.  vec new uses "__vn", and vec delete uses "__vd".
  1934.     * init.c (init_init_processing): Set up BIVN and BIVD.
  1935.     (do_friend): Don't clean up after mistaken setting of TREE_GETS_NEW,
  1936.     since it doesn't happen any more.
  1937.     (build_new): Support vec new.  Always call something.
  1938.     (build_x_delete): Support vec delete.
  1939.     (build_vec_delete): Lose dtor_dummy argument, add use_global_delete,
  1940.     and pass it to build_x_delete.
  1941.     * decl2.c (delete_sanity): Don't change behavior by whether or not
  1942.     the type has a destructor.  Pass use_global_delete to
  1943.     build_vec_delete.
  1944.     (coerce_delete_type): Make sure that the type returned has a first
  1945.     argument of ptr_type_node.
  1946.     * decl.c (init_decl_processing): Also declare the global vec
  1947.     new/delete.
  1948.     (grokdeclarator): Also force vec new/delete to be static.
  1949.     (grok_op_properties): Note presence of vec new/delete, and play with
  1950.     their args.  If vec delete takes the optional size_t argument, set
  1951.     TYPE_VEC_DELETE_TAKES_SIZE.
  1952.     * cp-tree.h (TYPE_GETS_{REG,VEC}_DELETE): New macros to simplify
  1953.     checking for one delete or the other.
  1954.     (lang_type): gets_new and gets_delete are now two bits long.  The
  1955.     low bit is for the non-array version.  Lose gets_placed_new.
  1956.     (TYPE_VEC_DELETE_TAKES_SIZE): New macro indicating that the vec
  1957.     delete defined by this class wants to know how much space it is
  1958.     deleting.
  1959.     (TYPE_VEC_NEW_USES_COOKIE): New macro to indicate when vec new must
  1960.     add a header containing the number of elements in the vector; i.e.
  1961.     when the elements need to be destroyed or vec delete wants to know
  1962.     the size.
  1963.     * class.c (finish_struct_methods): Also check for overloading vec
  1964.     delete.
  1965.     * call.c (build_method_call): Also delete second argument for vec
  1966.     delete.
  1967.  
  1968.     * decl.c (grokdeclarator): Correct complaints again.
  1969.     (grokdeclarator): Fix segfault on null declarator.
  1970.     (decls_match): Also accept redeclaration with no arguments if both
  1971.     declarations were in C context.  Bash TREE_TYPE (newdecl) here.
  1972.     (duplicate_decls): Instead of here.
  1973.  
  1974.     * parse.y (nested_name_specifier_1): Lose rules for dealing with
  1975.     syntax errors nicely, since they break parsing of 'const i;'.
  1976.  
  1977.     * decl.c (lookup_name): if (got_scope == current_class_type)
  1978.     val = IDENTIFIER_CLASS_VALUE (name).
  1979.  
  1980.     * search.c (lookup_nested_tag): Look in enclosing classes, too.
  1981.  
  1982.     * spew.c (yylex): Only look one character ahead when checking for a
  1983.     SCOPE.
  1984.  
  1985.     * lex.c (check_newline): Read first nonwhite char before
  1986.     incrementing lineno.
  1987.  
  1988.     * decl.c (grokdeclarator): Don't claim that typedefs are variables
  1989.     in warning.
  1990.  
  1991.     * parse.y: Divide up uses of unqualified_id into
  1992.     notype_unqualified_id and unqualified_id, so that TYPENAME can be
  1993.     used as an identifier after an object.
  1994.  
  1995.     * class.c (push_nested_class): Don't push into non-class scope.
  1996.  
  1997.     * decl.c (grokdeclarator): If an identifier could be a type
  1998.     conversion operator, but has no associated type, it's not a type
  1999.     conversion operator.
  2000.  
  2001.     * pt.c (unify): Check for equality of constants better.
  2002.  
  2003.     * decl.c (grokdeclarator): Don't complain about access decls.
  2004.  
  2005. Sun Apr 10 02:39:55 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2006.  
  2007.     * decl.c (grokdeclarator): pedwarn about data definitions without
  2008.     types here.
  2009.  
  2010.     * parse.y (datadef): Don't pedwarn about decls without types here,
  2011.     since that is valid for functions.
  2012.     (fn.def2, component_decl): Support constructors with declmods again.
  2013.     (nomods_initdecls): For decls without any mods, so that we don't try
  2014.     to get declspecs from some arbitrary $0.
  2015.  
  2016.     * search.c (lookup_field): Use cp_error.
  2017.  
  2018.     * parse.y (nested_name_specifier_1): Don't check aggr/non-aggr type
  2019.     here; it breaks destructors for non-aggr types.
  2020.  
  2021.     * decl.c (lookup_name): Only look for TYPE_DECLs in base classes of
  2022.     a type being defined, like the comment says.
  2023.     If got_scope is not an aggregate, just return NULL_TREE.
  2024.  
  2025.     * pt.c (create_nested_upt): Kung's code for creating types nested
  2026.     within uninstantiated templates now lives here (it used to live in
  2027.     hack_more_ids).  It needs to be expanded.
  2028.  
  2029.     * parse.y: Stop calling see_typename so much.
  2030.  
  2031.     * decl.c (lookup_name): Deal with TTPs and UPTs.
  2032.  
  2033.     * lex.c (real_yylex): Don't set looking_for_typename just because we
  2034.     saw a 'new'.
  2035.     (dont_see_typename): #if 0 out.
  2036.  
  2037.     * spew.c (yylex): Increment looking_for_typename if the next
  2038.     character is SCOPE, rather than setting it to 1; this way, the value
  2039.     from seeing an aggr specifier will not be lost.  This kinda relies
  2040.     on looking_for_typename never being < 0, which is now true.
  2041.  
  2042.     * parse.y (nested_name_specifier_1): Accept TEMPLATE_TYPE_PARMs,
  2043.     too.
  2044.     (named_class_head_sans_basetype): Accept template types, too.  Oops.
  2045.  
  2046. Fri Apr  8 16:39:35 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2047.  
  2048.     * decl2.c (reparse_decl_as_expr1): Handle SCOPE_REFs.
  2049.  
  2050.     * parse.y: Lose START_DECLARATOR.
  2051.  
  2052.     * search.c (lookup_nested_tag): New function to scan CLASSTYPE_TAGS
  2053.     for a class.
  2054.  
  2055.     * parse.y: Simplify fn.def2 and component_decl.  Support 'enum
  2056.     A::foo' syntax.  Catch invalid scopes better.
  2057.  
  2058.     * parse.y, lex.c: lose TYPENAME_COLON.
  2059.  
  2060.     * decl2.c (groktypefield): #if 0 out.
  2061.  
  2062.     * decl.c (lookup_name): If the type denoted by got_scope is
  2063.     currently being defined, look in CLASSTYPE_TAGS rather than FIELDS.
  2064.  
  2065.     * class.c (push_nested_class): Don't try to push into
  2066.     error_mark_node.
  2067.  
  2068. Fri Apr  8 07:26:36 1994  Brendan Kehoe  (brendan@lisa.cygnus.com)
  2069.  
  2070.     * Makefile.in (stamp-parse): Update count of conflicts to 33.
  2071.  
  2072. Thu Apr  7 17:47:53 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2073.  
  2074.     A saner implementation of nested types that treats template types
  2075.     no differently from non-template types.  There are still some
  2076.     shortcomings of our system; most notably, it is difficult to look
  2077.     for a nested type that is hidden by another name, because of the way
  2078.     we keep track of hidden types.  But this shouldn't be a problem for
  2079.     just about anyone.  Perhaps lookup_field should be fixed up a bit.
  2080.  
  2081.     * spew.c: Moved handling of nested types/scoping from the lexer
  2082.     into the parser.  Removed variable template_type_seen_before_scope.
  2083.     Removed functions frob_identifier, hack_more_ids, and various cruft
  2084.     that was #if 0'd out in the past, reducing the size of the file from
  2085.     1146 lines to 450 lines.  We can't quite do away with spew.c yet,
  2086.     though; we still need it for do_aggr () and checking for SCOPE after
  2087.     the current identifier.  And setting lastiddecl.
  2088.  
  2089.     * parse.y: Moved handling of nested types/scoping from the lexer
  2090.     into the parser, using a new global variable `got_scope'.  Reduced
  2091.     the number of states by 53.  Implemented all uses of explicit global
  2092.     scope.  Removed terminals SCOPED_TYPENAME and SCOPED_NAME.  Removed
  2093.     nonterminals tmpl.1, scoped_base_class, id_scope, typename_scope,
  2094.     scoped_typename.  Added nonterminals nested_type,
  2095.     qualified_type_name, complete_type_name, qualified_id, ptr_to_mem,
  2096.     nested_name_specifier, global_scope, overqualified_id, type_name.
  2097.     Changed many others.  Added 9 new reduce/reduce conflicts, which are
  2098.     nested type parallels of 9 that were already in the grammar for
  2099.     non-nested types.  Eight of the now 33 conflicts should be removed
  2100.     in the process of resolving the late binding between variable and
  2101.     function decls.
  2102.  
  2103.     * gxxint.texi (Parser): Update.
  2104.  
  2105.     * cp-tree.h (IS_AGGR_TYPE_CODE): Add UNINSTANTIATED_P_TYPE.
  2106.  
  2107.     * lex.h: Add decl for got_scope.
  2108.  
  2109.     * lex.c (see_typename): Claim to be the lexer when calling
  2110.     lookup_name.
  2111.  
  2112.     * decl.c (lookup_name): When called from the lexer, look at
  2113.     got_scope and looking_at_typename; otherwise don't.
  2114.  
  2115. Thu Apr  7 22:05:47 1994  Mike Stump  (mrs@cygnus.com)
  2116.  
  2117.     31th Cygnus<->FSF merge.
  2118.  
  2119. Thu Apr  7 17:47:53 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2120.  
  2121.     * decl2.c (mark_vtable_entries): Call this to mark all the
  2122.     entries in the vtable addressable.
  2123.     (finish_decl_parsing): Handle SCOPE_REFs.
  2124.  
  2125.     * decl.c (decls_match): Always call compparms with strict == 1.
  2126.     Handle the special case of C function redecl here.
  2127.     (duplicate_decls): Only keep the old type if the new decl takes no
  2128.     arguments.
  2129.  
  2130.     * typeck.c (compparms): Also allow t1 to be ... if strict == 0.
  2131.  
  2132. Thu Apr  7 16:17:50 1994  Mike Stump  (mrs@cygnus.com)
  2133.  
  2134.     * class.c (build_vtable_entry): Fix breakage introduced Apr 5
  2135.     17:48:41.
  2136.  
  2137. Wed Apr  6 16:05:10 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  2138.  
  2139.     * init.c (build_virtual_init), search.c (build_vbase_vtables_init),
  2140.     ch-tree.h:  Every place these functions were called, the result was
  2141.     immediately passed to expand_expr_stmt.  Reduce redundancy by
  2142.     calling expand_expr_init *inside* these functions.  These
  2143.     makes for a simpler interface, and we don't have to build
  2144.     compound expressions.  Hence, rename these function to:
  2145.     expand_virtual_init and expand_vbase_vtables_init respectively.
  2146.     * init.c, decl.c:  Change callers of these functions.
  2147.     * init.c, cp-tree.h (expand_virtual_init):  Make static.
  2148.  
  2149.     * decl2.c (finish_file): Check TREE_PUBLIC||TREE_ADDRESSABLE
  2150.     rather than DECL_SAVED_INSNS before emitting inlines.
  2151.  
  2152. Wed Apr  6 13:06:39 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2153.  
  2154.     * spew.c (init_spew): #if 0 out stuff used by arbitrate_lookup.
  2155.  
  2156.     * decl.c (duplicate_decls): If this is a new declaration of an
  2157.     extern "C" function, keep the type (for the argtypes).
  2158.     (redeclaration_error_message): Don't check DECL_LANGUAGE here.
  2159.     (decls_match): Call compparms with a value of strict dependent on
  2160.     the value of strict_prototypes for DECL_LANGUAGE (oldecl).
  2161.  
  2162.     * typeck.c (compparms): ... is only equivalent to non-promoting
  2163.     parms if we're not being strict.
  2164.  
  2165.     * parse.y (empty_parms): Don't check flag_ansi || pedantic here.
  2166.  
  2167.     * decl.c (init_decl_processing): if (flag_ansi || pedantic)
  2168.     strict_prototypes_lang_c = strict_prototypes_lang_cplusplus;
  2169.  
  2170.     * decl2.c (grok_function_init): Don't set DECL_INITIAL on pure
  2171.     virtuals.
  2172.  
  2173. Tue Apr  5 17:48:41 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  2174.  
  2175.     Support for implementing vtables with thunks.
  2176.     * tree.def (THUNK_DECL):  New TREE_CODE.
  2177.     * cp-tree.h (FNADDR_FROM_VTABLE_ENTRY), tree.c
  2178.     (fnaddr_from_vtable_entry):  Handle flag_vtable_thunks case.
  2179.     * cp-tree.h (memptr_type):  New variable.
  2180.     * class.c (build_vtable_entry):  Build thunk if necessary.
  2181.     * class.c (build_vfn_ref):  If using thunks, don't need
  2182.     to add delta field from vtable (there is none!).
  2183.     * decl.c: Add memptr_type as well as vtable_entry_type.
  2184.     If using thunks, the latter is just ptr_type_node.
  2185.     * gc.c, typeck.c:  Use memptr_typeChange, not vtable_entry_type.
  2186.     * decl2.c (finish_vtable_vardecl):  Handle thunks.
  2187.     * expr.c (cplus_expand_expr):  Support THUNK_DECL.
  2188.  
  2189.     * decl.c (grokdeclarator):  Set DECL_THIS_EXTERN if "extern".
  2190.     * decl.c (start_function):  Set current_extern_inline based on
  2191.     DECL_THIS_EXTERN, not TREE_PUBLIC.
  2192.     * decl.c (finish_function):  Call mark_inline_for_output if needed,
  2193.  
  2194.     Improve intelligence about when to emit inlines.
  2195.     * cp-tree.h (lang_decl_flags):  New field saved_inline.
  2196.     * cp-tree.h (DECL_SAVED_INLINE):  New macro.
  2197.     * class.c (add_virtual_function):  Don't set TREE_ADDRESSABLE.
  2198.     * decl.h, decl.c (pending_addressable_inlines):  Removed.
  2199.     * decl2.c (pending_addressable_inlines):  Renamed to saved_inlines.
  2200.     * decl2.c (mark_inline_for_output):  Do nothing if
  2201.     DECL_SAVED_INLINE;  otherwise set it (and add to saved_inlines list).
  2202.     * decl2.c (finish_vtable_vardecl):  SET_CLASSTYPE_INTERFACE_KNOWN
  2203.     and set CLASSTYPE_INTERFACE_ONLY if there is a non-inline virtual.
  2204.     * decl2.c (finish_file):  Writing out inlines later, so we can
  2205.     also handle the ones needed for vtbales.
  2206.     * decl2.c (write_vtable_entries, finish_vtable_typedecl):  Removed.
  2207.  
  2208.     * cp-tree.h, class.c, decl2.c, search.c:  Remove -fvtable-hack
  2209.     and flag_vtable_hack.      Use -fvtable-thunks and flag_vtable_thunks
  2210.     instead.  (The rationale is that these optimizations both break binary
  2211.     compatibility, but should become the default in a future release.)
  2212.  
  2213. Wed Apr  6 10:53:56 1994  Mike Stump  (mrs@cygnus.com)
  2214.  
  2215.     * class.c (modify_vtable_entries): Never reset the DECL_CONTEXT
  2216.     of a fndecl, as we might not be from that vfield.
  2217.  
  2218. Tue Apr  5 17:43:35 1994  Kung Hsu  (kung@mexican.cygnus.com)
  2219.  
  2220.     * class.c (add_virtual_function): fix bug for pure virtual, so
  2221.     that DECL_VINDEX of the dummy decl copied won't be error.
  2222.     (see also Apr 4 change)
  2223.  
  2224. Tue Apr  5 17:23:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  2225.  
  2226.     * typeck.c (c_expand_return):  Before checking that we're not
  2227.     returning the address of a local, make sure it's a VAR_DECL.
  2228.     (And don't worry about it being a TREE_LIST.)
  2229.  
  2230. Tue Apr  5 13:26:42 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2231.  
  2232.     * parse.y (YYDEBUG): Always define.
  2233.     * lex.c (YYDEBUG): Ditto.
  2234.  
  2235. Mon Apr  4 11:28:17 1994  Kung Hsu  (kung@mexican.cygnus.com)
  2236.  
  2237.     * class.c (finish_struct): backup out the change below, put the
  2238.     new change for the same purpose. The change below breaks code.
  2239.  
  2240.     * class.c (finish_struct): if pure virtual, copy node and make
  2241.     RTL point to abort, then put in virtual table.
  2242.     * decl2.c (grok_function_iit): reinstate Mar 31 change.
  2243.  
  2244. Sat Apr  2 03:12:58 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2245.  
  2246.     * init.c (build_new): pedwarn about newing const and volatile
  2247.     types.
  2248.  
  2249.     * tree.c (get_identifier_list): Only do the special handling
  2250.     thing if we're dealing with the main variant of the record type.
  2251.  
  2252.     * cvt.c (convert_to_reference): When converting between
  2253.     compatible reference types, use the pointer conversion machinery.
  2254.     Don't just blindly overwrite the old type.
  2255.  
  2256. Fri Apr  1 17:14:42 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2257.  
  2258.     * call.c (build_method_call): When looking at global functions,
  2259.     be sure to use instance_ptr for the first argument, not some version
  2260.     of it that has been cast to a base class.  Also do this before
  2261.     comparing candidates.
  2262.  
  2263. Thu Mar 31 19:50:35 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2264.  
  2265.     * call.c (build_method_call): Constructors can be called for
  2266.     const objects.
  2267.  
  2268. Thu Mar 31 16:20:16 1994  Kung Hsu  (kung@mexican.cygnus.com)
  2269.  
  2270.     * decl2.c (grok_func_init): do not abort as rtl for pur virtual
  2271.     fucntions. They can be defined somewhere else.
  2272.  
  2273. Sat Jan 23 23:23:26 1994  Stephen R. van den Berg  (berg@pool.informatik.rwth-aachen.de)
  2274.  
  2275.     * decl.c (init_decl_processing): Declare __builtin_return_address
  2276.     and __builtin_frame_address for C++ as well.
  2277.  
  2278. Thu Mar 31 12:35:49 1994  Mike Stump  (mrs@cygnus.com)
  2279.  
  2280.     * typeck2.c (store_init_value): Integral constant variables are
  2281.     always constant, even when doing -fpic.
  2282.  
  2283. Sat Jan 23 23:23:26 1994  Stephen R. van den Berg  (berg@pool.informatik.rwth-aachen.de)
  2284.  
  2285.     * decl.c (redeclaration_error_message): Pass the types to
  2286.     comptypes.
  2287.  
  2288. Wed Mar 30 21:29:25 1994  Mike Stump  (mrs@cygnus.com)
  2289.  
  2290.     Cures incorrect errors about pure virtuals in a class, when they
  2291.     have been overridden in a derived class.
  2292.  
  2293.     * search.c (get_abstract_virtuals): Reimplement.
  2294.     * search.c (get_abstract_virtuals_1): New routine.
  2295.  
  2296. Wed Mar 30 14:10:04 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2297.  
  2298.     * pt.c (push_template_decls): Make the pushed level pseudo
  2299.     global.
  2300.  
  2301.     * parse.y (extdefs): Don't pop everything if the current binding
  2302.     level is pseudo_global.
  2303.  
  2304.     * decl.c (pop_everything): Stop on reaching a pseudo-global
  2305.     binding level.
  2306.  
  2307.     * cp-tree.h (DECL_FUNCTION_MEMBER_P): Change to more reliable test.
  2308.  
  2309.     * decl.c (duplicate_decls): Only copy DECL_SOURCE_{FILE_LINE} if
  2310.     the old decl actually had an initializer.
  2311.  
  2312.     * {various}: Clean up gcc -W complaints.
  2313.  
  2314.     * cp-tree.h (DECL_FUNCTION_MEMBER_P): Currently defined to be
  2315.     (DECL_CONTEXT (NODE) != NULL_TREE).
  2316.  
  2317.     * parse.y (lang_extdef): Call pop_everything if necessary.
  2318.  
  2319.     * decl.c (pop_everything): New function for popping binding
  2320.     levels left over after a syntax error.
  2321.     (pushdecl): Use DECL_FUNCTION_MEMBER_P to decide whether or not
  2322.     a function is a member.
  2323.  
  2324. Wed Mar 30 14:20:50 1994  Mike Stump  (mrs@cygnus.com)
  2325.  
  2326.     Cures calling a more base base class function, when a more derived
  2327.     base class member should be called in some MI situations.
  2328.  
  2329.     * search.c (make_binfo): Use more the more specialized base
  2330.     binfos from the binfo given as the second argument to make_binfo,
  2331.     instead of the unspecialized ones from the TYPE_BINFO.
  2332.     * class.c (finish_base_struct): Ditto, update callers.
  2333.     * search.c (dfs_get_vbase_types): Ditto.
  2334.     * tree.c (propagate_binfo_offsets, layout_vbasetypes): Ditto.
  2335.     * decl.c (xref_tag): Use NULL_TREE instead of 0.
  2336.     * lex.c (make_lang_type): Ditto.
  2337.  
  2338. Wed Mar 30 14:10:04 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2339.  
  2340.     * decl.c (pushdecl): If pushing a C-linkage function, only do a
  2341.     push_overloaded_decl.
  2342.     (duplicate_decls): Standard overloading does not shadow built-ins.
  2343.  
  2344. Tue Mar 29 00:54:18 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2345.  
  2346.     * pt.c (end_template_decl): Don't call push_overloaded_decl.
  2347.  
  2348.     * init.c (do_friend): Don't call push_overloaded_decl.
  2349.  
  2350.     * decl.c (pushdecl): Call push_overloaded_decl for functions and
  2351.     function templates.
  2352.     (duplicate_decls): functions and function templates are not
  2353.     duplicates, but don't complain about calling this function to
  2354.     compare them.
  2355.     (push_overloaded_decl): Don't deal with linkage.  Call
  2356.     duplicate_decls.
  2357.     (redeclaration_error_message): Deal with linkage.
  2358.  
  2359.     * decl.c (start_function): If push_overloaded_decl returns an
  2360.     older version of the function, deal with it.
  2361.  
  2362.     * decl.c (start_function): Be sure only to push_overloaded_decl
  2363.     for non-members.
  2364.  
  2365.     * decl.c (grokfndecl): Put back clearing of DECL_CHAIN for
  2366.     methods.
  2367.     (start_function): Lose broken and redundant code for checking old
  2368.     decl.
  2369.  
  2370.     * init.c (add_friend): Give line numbers of both friend decls
  2371.     when warning about re-friending.
  2372.  
  2373.     * pt.c (tsubst): Use comptypes rather than == to compare the
  2374.     types of the method as declared and as defined, since default
  2375.     parameters may be different.
  2376.  
  2377.     * call.c (build_method_call): Use brendan's candidate printing
  2378.     routine.
  2379.  
  2380.     * decl.c (start_method): Methods defined in the class body are
  2381.     inline whether or not it's a template class.
  2382.  
  2383. Mon Mar 28 16:39:26 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2384.  
  2385.     * parse.y (initdcl0): Add "extern" to current_declspecs if
  2386.     have_extern_spec && ! used_extern_spcec.
  2387.  
  2388.     * tree.c (really_overloaded_fn): A fn with more than one
  2389.     overload.
  2390.  
  2391.     * pt.c (end_template_decl): Use really_overloaded_fn.
  2392.  
  2393.     * decl.c (duplicate_decls): When smashing a decl into a previous
  2394.     definition, keep the old file and line.
  2395.     Don't deal with overloaded functions.
  2396.     Lose old code for checking arg types of functions.
  2397.     Check for overloaded C functions.
  2398.     (pushdecl): Deal with overloaded functions.
  2399.     (start_decl): Expect pushdecl to return an appropriate function decl.
  2400.     (start_function): Ditto.
  2401.     (push_overloaded_decl): Don't check for overloaded C functions.
  2402.  
  2403.     * *.c: Stop using DECL_OVERLOADED, it being archaic.
  2404.     TREE_OVERLOADED should probably go, too.
  2405.  
  2406. Mon Mar 28 14:00:45 1994  Ron Guilmette  (rfg@netcom.com)
  2407.  
  2408.     * typeck.c (comp_target_types): Call comp_target_parms with
  2409.     strict == 1.
  2410.  
  2411. Sun Mar 27 00:07:45 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2412.  
  2413.     * parse.y (empty_parms): Don't parse () as (...) in extern "C"
  2414.     sections if we're compiling with -ansi or -pedantic.
  2415.  
  2416.     * decl.c (decls_match): Don't treat (int) and (int&) as matching.
  2417.  
  2418.     * decl2.c (grokfield): Don't pedwarn twice about initializing
  2419.     field.
  2420.  
  2421.     * decl.c (push_overloaded_decl): Warn about shadowing
  2422.     constructor.
  2423.     (redeclaration_error_message): Don't allow 'int a; int a;'
  2424.  
  2425.     * cvt.c (build_up_reference): Only check for valid upcast if
  2426.     LOOKUP_PROTECT is set, not just any flag.
  2427.  
  2428. Fri Mar 25 01:22:31 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2429.  
  2430.     * lex.c (check_newline): When we see a #pragma implementation,
  2431.     also set it for the main input file.
  2432.  
  2433.     * init.c (build_new): Convert array size argument to size_t.
  2434.  
  2435.     * parse.y (primary): If we're doing a parenthesized type-id, call
  2436.     groktypename before passing it to build_new.
  2437.  
  2438.     * call.c (build_method_call): Deal properly with const and
  2439.     volatile for instances of reference type.
  2440.  
  2441.     * decl.c (store_return_init): Change 'if (pedantic) error' to 'if
  2442.     (pedantic) pedwarn'.
  2443.  
  2444.     * decl.c (grokdeclarator): Don't complain about putting `static'
  2445.     and `inline' on template function decls.
  2446.  
  2447. Thu Mar 24 23:18:19 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2448.  
  2449.     * call.c (build_method_call): Preserve const & volatile on
  2450.     `this'.
  2451.  
  2452. Thu Mar 24 16:21:52 1994  Mike Stump  (mrs@cygnus.com)
  2453.  
  2454.     * init.c (build_new, build_vec_delete): Use global new and delete
  2455.     for arrays. 
  2456.     * decl2.c (delete_sanity): Ditto.
  2457.  
  2458. Thu Mar 24 02:10:46 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2459.  
  2460.     * cvt.c (convert_to_reference): If i is an lvalue,
  2461.     (int &)i -> *(int*)&i, as per 5.2.8p9 of the latest WP.
  2462.     (convert_force): Call convert_to_reference with LOOKUP_COMPLAIN.
  2463.  
  2464. Wed Mar 23 17:45:37 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2465.  
  2466.     * decl.c (duplicate_decls): Also propagate DECL_TEMPLATE_MEMBERS
  2467.     and DECL_TEMPLATE_INSTANTIATIONS.
  2468.  
  2469.     * init.c (build_new): Handle array typedefs properly.
  2470.  
  2471. Wed Mar 23 18:23:33 1994  Mike Stump  (mrs@cygnus.com)
  2472.  
  2473.     30th Cygnus<->FSF merge.
  2474.  
  2475. Wed Mar 23 00:46:24 1994  Mike Stump  (mrs@cygnus.com)
  2476.  
  2477.     * class.c (modify_vtable_entries): Avoid running off the end of the
  2478.     virtuals list when processing a virtual destructor.
  2479.     * class.c (get_vtable_entry): Ditto.
  2480.  
  2481. Wed Mar 23 00:23:59 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2482.  
  2483.     * decl.c (duplicate_decls): If two template decls don't match,
  2484.     just return 0.
  2485.  
  2486. Tue Mar 22 23:49:41 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2487.  
  2488.     * typeck.c (convert_for_assignment): Don't pedwarn about
  2489.     converting function pointer to void *.
  2490.  
  2491. Tue Mar 22 22:23:19 1994  Mike Stump  (mrs@cygnus.com)
  2492.  
  2493.     Major revamp of pointer to member functions.  Cures major
  2494.     nonfunctionality when used in casts, and MI situations.
  2495.  
  2496.     * cvt.c (convert_force): Update call site of build_ptrmemfunc.
  2497.     * typeck.c (convert_for_assignment): Ditto.
  2498.     * typeck2.c (digest_init): Ditto.
  2499.     * typeck2.c (process_init_constructor): Simplify by moving code into
  2500.     digest_init.
  2501.     * typeck2.c (digest_init): Do default_conversions on init value, if
  2502.     we are processing pointer to member functions.
  2503.     * class.c (get_vfield_offset): Now non-static.  Convert bit offset
  2504.     into byte offset.
  2505.     * cp-tree.h (get_vfield_offset): Ditto.
  2506.     * typeck.c (get_member_function_from_ptrfunc): Convert down to right
  2507.     instance, before fetching vtable pointer.
  2508.     * typeck.c (get_delta_difference): New routine.
  2509.     * typeck.c (build_ptrmemfunc): Revamp to handle casting better, also
  2510.     get vtable pointer out of right subobject.
  2511.  
  2512. Tue Mar 22 17:56:48 1994  Mike Stump  (mrs@cygnus.com)
  2513.  
  2514.     * search.c (get_binfo): Return NULL instead of aborting, when
  2515.     passed a UNION_TYPE.
  2516.  
  2517. Tue Mar 22 12:44:54 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2518.  
  2519.     These patches implement handling of redefinition/redeclaration of
  2520.     templates.
  2521.  
  2522.     * typeck.c (comptypes): Simplify.  All TEMPLATE_TYPE_PARMs are
  2523.     considered compatible.
  2524.  
  2525.     * parse.y (template_def): Pass defn argument to end_template_decl.
  2526.  
  2527.     * pt.c (end_template_decl): Add defn argument.  Check for
  2528.     redefinition.  Simplify.
  2529.  
  2530.     * error.c (OB_UNPUT): New macro, to remove mistakes.
  2531.     (aggr_variety): Subroutine of dump_aggr_type.
  2532.  
  2533.     * decl.c (decls_match): Support templates.
  2534.     (duplicate_decls): No longer static.  Don't try to lay out template
  2535.     decls.
  2536.     (pushdecl): Simplify.
  2537.  
  2538.     * cp-tree.h (DECL_TEMPLATE_MEMBERS): Use DECL_SIZE instead of
  2539.     DECL_INITIAL.
  2540.  
  2541. Mon Mar 21 11:46:55 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2542.  
  2543.     * error.c (dump_decl): Support class template decls.
  2544.     (dump_type): Don't adorn template type parms.
  2545.  
  2546.     * decl.c (duplicate_decls): Save DECL_TEMPLATE_INFO from old decl
  2547.     if it was a definition.
  2548.     (redeclaration_error_message): Do the cp_error thang, and reject
  2549.     redefinition of templates.
  2550.  
  2551. Mon Mar 21 19:36:06 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  2552.  
  2553.     * decl.c (grokdeclarator):  Set TREE_PUBLIC for METHOD_TYPE
  2554.     in FIELD context, when appropriate.  Also,
  2555.     CLASSTYPE_INTERFACE_ONLY is irrelevant to setting TREE_PUBLIC.
  2556.     Also, simplify check for bogus return specifiers.
  2557.  
  2558. Mon Mar 21 11:46:55 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2559.  
  2560.     * parse.y (after_type_declarator1): Expand type_quals.
  2561.     (notype_declarator1): Ditto.
  2562.     (absdcl1): Ditto.
  2563.  
  2564. Sat Mar 19 01:05:17 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2565.  
  2566.     * decl.c (grokdeclarator): Treat class-local typedefs like static
  2567.     members; i.e. 'typedef int f();' means that f is a function type,
  2568.     not a method type.
  2569.  
  2570.     * parse.y (decl): Change direct_* back to *.
  2571.     (type_id): Change direct_abstract_declarator to absdcl.
  2572.     (direct_declarator, direct_initdecls, direct_initdcl0): Remove again.
  2573.  
  2574. Fri Mar 18 12:47:59 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2575.  
  2576.     These two patches fix crashes on instantiating a template inside a
  2577.     function with C linkage or containing labels.
  2578.  
  2579.     * class.c (current_lang_stacksize): No longer static.
  2580.  
  2581.     * decl.c (struct saved_scope): Add lang_base, lang_stack,
  2582.     lang_name, lang_stacksize, and named_labels.
  2583.     (push_to_top_level): Save them.
  2584.     (pop_from_top_level): Restore them.
  2585.  
  2586.     * gxxint.texi (Parser): Update.
  2587.  
  2588.     These two patches finish moving the task of expr/declarator
  2589.     ambiguity resolution from the lexer to the parser, and add one more
  2590.     r/r conflict.  START_DECLARATOR can now be nuked.
  2591.  
  2592.     * parse.y (decl): Add "direct_" in typespec X rules.
  2593.     (direct_declarator): New nonterminal for
  2594.     direct_after_type_declarator and direct_notype_declarator.
  2595.     (direct_initdecls): Like initdecls, but uses direct_initdcl0.
  2596.     (direct_initdcl0): Like initdcl0, but uses direct_declarator.
  2597.     (named_parm): Add typespec direct_declarator rule.
  2598.  
  2599.     * spew.c (yylex): #if 0 out START_DECLARATOR insertion.
  2600.  
  2601.     These two patches disable some excessive cleverness on the part of
  2602.     g++; a non-class declaration always hides a class declaration in the
  2603.     same scope, and g++ was trying to unhide it depending on the
  2604.     enclosing expression.
  2605.  
  2606.     * spew.c (arbitrate_lookup): #if 0 out.
  2607.  
  2608.     * decl.c (lookup_name): Never call arbitrate_lookup.
  2609.  
  2610.     * parse.y (complex_notype_declarator1): Add '*'
  2611.     complex_notype_declarator1 and '&' complex_notype_declarator1 rules.
  2612.  
  2613.     * parse.y (complex_direct_notype_declarator): Restore id_scope
  2614.     see_typename TYPENAME rule, remove all other rules beginning with
  2615.     those tokens.
  2616.     (notype_unqualified_id): Add '~' see_typename IDENTIFIER rule.
  2617.  
  2618. Thu Mar 17 17:30:01 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2619.  
  2620.     These changes fix the compiler's handling of the functional cast/
  2621.     object declaration ambiguities in section 6.8 of the ARM.  They also
  2622.     add 11 reduce/reduce conflicts.  Sigh.
  2623.  
  2624.     * parse.y: Add precedence decls for OPERATOR and '~'.
  2625.     (notype_unqualified_id): New nonterminal, encompasses all of the
  2626.     ANSI unqualified-id nonterminal except TYPENAMEs.
  2627.     (expr_or_declarator): New nonterminal to delay parsing of code like
  2628.     `int (*a)'.
  2629.     (primary): Use notype_unqualified_id.
  2630.     (decl): Add typespec initdecls ';' and typespec declarator ';'
  2631.     rules.
  2632.     (initdcl0): Deal with the above.
  2633.     (complex_notype_declarator1): A notype_declarator that is not also
  2634.     an expr_or_declarator.
  2635.     (complex_direct_notype_declarator): A direct_notype_declarator that
  2636.     doesn't conflict with expr_or_declarator.  Use
  2637.     notype_unqualified_id.  Remove id_scope see_typename TYPENAME rule.
  2638.     (functional_cast): New nonterminal, for the three functional cast
  2639.     rules.  So that they can be moved after
  2640.     complex_direct_notype_declarator.
  2641.     (see_typename): Don't accept type_quals any more.
  2642.  
  2643.     * decl2.c (reparse_decl_as_expr): New function to deal with parse
  2644.     nodes for code like `int (*a)++;'.    
  2645.     (reparse_decl_as_expr1): Recursive subroutine of the above.
  2646.     (finish_decl_parsing): New function to deal with parse nodes for
  2647.     code like `int (*a);'.  See the difference?
  2648.  
  2649. Thu Mar 17 12:16:10 1994  Mike Stump  (mrs@cygnus.com)
  2650.  
  2651.     These changes break binary compatibility in code with classes
  2652.     that use virtual bases.
  2653.  
  2654.     * search.c (dfs_get_vbase_types): Simplify and correct to make
  2655.     sure virtual bases are initialized in dfs ordering.
  2656.     * search.c (get_vbase_types): Simplify and make readable.
  2657.  
  2658. Thu Mar 17 12:01:10 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2659.  
  2660.     * parse.y: s/ typename / type_id /g
  2661.  
  2662. Wed Mar 16 17:42:52 1994  Kung Hsu  (kung@mexican.cygnus.com)
  2663.  
  2664.     * parse.y (typespec): add SCOPE TYPENAME for global scoped 
  2665.     type. e.g. ::B x.
  2666.  
  2667.     * decl.c (complete_array_type): fix a bug that in -pendantic
  2668.     mode even there's no initializer, it will continue to build
  2669.     default index.
  2670.  
  2671. Wed Mar 16 17:43:07 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2672.  
  2673.     * parse.y (direct_notype_declarator): Add PTYPENAME rule, remove
  2674.     all of the scoped PTYPENAME rules.
  2675.  
  2676. Wed Mar 16 16:39:02 1994  Mike Stump  (mrs@cygnus.com)
  2677.  
  2678.     * init.c (build_offset_ref): The value of A::typedef_name is
  2679.     always the TYPE_DECL, and never an error.
  2680.  
  2681. Tue Mar 15 20:02:35 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2682.  
  2683.     * search.c (get_base_distance_recursive): Two binfos can only
  2684.     represent the same object if they are both via_virtual.
  2685.  
  2686.     * class.c (finish_base_struct): Check vbases for ambiguity, too.
  2687.  
  2688.     * search.c (get_vbase_types): Accept binfo argument, too.
  2689.  
  2690. Tue Mar 15 19:22:05 1994  Kung Hsu  (kung@mexican.cygnus.com)
  2691.  
  2692.     * decl.c (complete_array_type): complete TYPE_DOMAIN of the 
  2693.     initializer also, because back-end requires it.
  2694.  
  2695. Tue Mar 15 15:33:31 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2696.  
  2697.     * error.c (dump_expr): Support member functions (which show up as
  2698.     OFFSET_REFs).
  2699.  
  2700. Mon Mar 14 16:24:36 1994  Mike Stump  (mrs@cygnus.com)
  2701.  
  2702.     * init.c (build_new): Set the return type of multidimensional
  2703.     news correctly.
  2704.  
  2705. Fri Mar 11 15:35:39 1994  Kung Hsu  (kung@mexican.cygnus.com)
  2706.  
  2707.     * call.c (build_method_call): if basetype not equal to type
  2708.     of the instance, use the type of the instance in building
  2709.     destructor.
  2710.  
  2711. Thu Mar 10 17:07:10 1994  Kung Hsu  (kung@mexican.cygnus.com)
  2712.  
  2713.     * parse.y (direct_notype_declarator): add push_nested_type for
  2714.     'template_type SCOPED_NAME' rule.
  2715.  
  2716. Tue Mar  8 00:19:58 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2717.  
  2718.     * parse.y (parm): Add typed_declspec1 {absdcl, epsilon} rules.
  2719.  
  2720. Sat Mar  5 04:47:48 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2721.  
  2722.     * parse.y (regcast_or_absdcl): New nonterminal to implement late
  2723.     reduction of constructs like `int ((int)(int)(int))'.
  2724.     (cast_expr): Use it.
  2725.     (sub_cast_expr): Everything that can come after a cast.
  2726.     (typed_declspecs1): typed_declspecs that are not typed_typespecs.
  2727.     (direct_after_type_declarator): Lose PAREN_STAR_PAREN rule.
  2728.     (direct_abstract_declarator): Replace '(' parmlist ')' rule with
  2729.     '(' complex_parmlist ')' and regcast_or_absdcl.
  2730.     (parmlist): Split
  2731.     (complex_parmlist): Parmlists that are not also typenames.
  2732.     (parms_comma): Enabler.
  2733.     (named_parm): A parm that is not also a typename.  Use declarator
  2734.     rather than dont_see_typename abs_or_notype_decl.  Expand
  2735.     typed_declspecs inline.
  2736.     (abs_or_notype_decl): Lose.
  2737.     (dont_see_typename): Comment out.
  2738.     (bad_parm): Break out abs_or_notype_decl into two rules.
  2739.  
  2740. Fri Mar  4 18:22:39 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2741.  
  2742.     * decl2.c (reparse_decl_as_casts): New function to change parse
  2743.     nodes for `(int)(int)(int)' from "function taking int and returning
  2744.     function taking int and returning function taking int" to "... cast
  2745.     to int, cast to int, cast to int".
  2746.  
  2747.     * decl2.c (reparse_decl_as_expr): Recursive function to change
  2748.     parse nodes for `A()()' from "function returning function returning
  2749.     A" to "A().operator()".
  2750.  
  2751.     * parse.y (primary): Replace `typespec LEFT_RIGHT' rule with
  2752.     `typespec fcast_or_absdcl' rule.
  2753.     (fcast_or_absdcl): New nonterminal to implement late reduction of
  2754.     constructs like `A()()()()'.
  2755.     (typename): Replace `typespec absdcl1' rule with
  2756.     `typespec direct_abstract_declarator' rule.
  2757.     (direct_abstract_declarator): Replace `LEFT_RIGHT type_quals' rule
  2758.     with `fcast_or_absdcl type_quals' rule.
  2759.  
  2760. Fri Mar  4 16:18:03 1994  Mike Stump  (mrs@cygnus.com)
  2761.  
  2762.     * tree.c (lvalue_p): Improve OFFSET_REF handling, so that it
  2763.     matches Section 5.5.
  2764.  
  2765. Fri Mar  4 14:01:59 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2766.  
  2767.     * error.c (dump_type_prefix): Don't print basetype twice for
  2768.     pmfs.
  2769.  
  2770. Fri Mar  4 13:24:33 1994  Mike Stump  (mrs@cygnus.com)
  2771.  
  2772.     * typeck.c (convert_arguments): Handle setHandler(A::handlerFn)
  2773.     so that it is like setHandler(&A::handlerFn).  Cures an `invalid
  2774.     lvalue in unary `&''.
  2775.  
  2776. Fri Mar  4 11:15:59 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2777.  
  2778.     * gxxint.texi (Copying Objects): New section discussing default
  2779.     op= problems with virtual inheritance.
  2780.  
  2781.     * decl2.c (grokoptypename): Just does grokdeclarator and
  2782.     build_typename_overload, since the parser can't call grokdeclarator
  2783.     directly.
  2784.  
  2785.     * method.c (build_typename_overload): Set IDENTIFIER_GLOBAL_VALUE
  2786.     and TREE_TYPE on generated identifiers.
  2787.  
  2788.     * decl.c (grokdeclarator): Don't deal with TYPE_EXPRs anymore.
  2789.  
  2790.     * parse.y (parm): Convert `const char *' to `__opPCc' here.
  2791.  
  2792.     * error.c (dump_decl): Say sorry rather than my_friendly_aborting
  2793.     if we can't figure out what to do.
  2794.     (dump_type*): Ditto.
  2795.  
  2796.     * typeck2.c (build_m_component_ref): 'component' is an expr, not
  2797.     a decl.  Also move the IS_AGGR_TYPE check after the stripping of
  2798.     REFERENCE_TYPE.
  2799.  
  2800. Fri Mar  4 04:46:05 1994  Mike Stump  (mrs@cygnus.com)
  2801.  
  2802.     * call.c (build_method_call): Handle b->setHandler(A::handlerFn)
  2803.     so that it is like b->setHandler(&A::handlerFn).  Cures an `invalid
  2804.     lvalue in unary `&''.
  2805.  
  2806. Thu Mar  3 12:38:15 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2807.  
  2808.     * parse.y: Add precedence specification for START_DECLARATOR.
  2809.     (type_quals): Move before primary.
  2810.     (typename): Move before typed_declspecs, add 'typespec absdcl1' rule.
  2811.  
  2812.     * decl2.c (grokoptypename): Lose.
  2813.  
  2814.     * decl.c (grokdeclarator): Parse TYPE_EXPRs in the initial scan,
  2815.     rather than waiting until later.
  2816.  
  2817. Wed Mar  2 14:12:23 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2818.  
  2819.     * parse.y (unary_expr): Use 'typename' in 'new' rules, rather
  2820.     than expanding it inline.
  2821.     (typename): Expand empty option of (former) absdcl inline.
  2822.     (abs_or_notype_decl): Ditto.
  2823.     (absdcl): Lose empty rule.
  2824.     (conversion_declarator): New nonterminal for 'typename' of 'operator
  2825.     typename'.
  2826.     (operator_name): Use it instead of absdcl.
  2827.  
  2828.     * parse.y: Add precedence declarations for SCOPED_TYPENAME,
  2829.     TYPEOF, and SIGOF.
  2830.     (typed_declspecs): Accept typed_typespecs, rather than typespec
  2831.     directly.  Add rules with reserved_typespecquals.
  2832.     (reserved_declspecs): Don't accept typespecqual_reserved at the
  2833.     beginning of the list.  The typed_declspecs rule will deal with this
  2834.     omission.
  2835.     (declmods): Accept nonempty_type_quals, rather than TYPE_QUAL
  2836.     directly.
  2837.  
  2838.     * parse.y (direct_notype_declarator,
  2839.     direct_after_type_declarator, direct_abstract_declarator): Split up
  2840.     the declarator1 nonterminals to match the draft standard and avoid
  2841.     ambiguities.
  2842.     (new_type_id, new_declarator, direct_new_declarator,
  2843.     new_member_declarator): New nonterminals to implement the subset of
  2844.     'typename' allowed in new expressions.
  2845.     (unary_expr): Use new_type_id instead of typename.
  2846.     (after_type_declarator1, absdcl1): Fix semantics of member pointers.
  2847.     (abs_member_declarator, after_type_member_declarator): Lose.
  2848.  
  2849.     * parse.y (absdcl1): Don't require parens around
  2850.     abs_member_declarator.
  2851.     (abs_member_declarator): Lose see_typename from rules.
  2852.     (after_type_member_declarator): Ditto.
  2853.  
  2854.     * tree.c (get_identifier_list): New function, containing code
  2855.     previously duplicated in get_decl_list and list_hash_lookup_or_cons.
  2856.     (get_decl_list): Use it.
  2857.     (list_hash_lookup_or_cons): Ditto.
  2858.  
  2859.     * parse.y (typed_declspecs, declmods): It's not necessary to hash
  2860.     the declspecs on class_obstack, so don't.  This way typed_typespecs
  2861.     can reduce to typed_declspecs.
  2862.  
  2863. Wed Mar  2 14:29:18 1994  Jason Merrill (jason@cygnus.com)
  2864.  
  2865.     * cvt.c (build_up_reference): If we aren't checking visibility,
  2866.     also allow base->derived conversions.
  2867.  
  2868. Mon Feb 28 15:14:29 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  2869.  
  2870.     * typeck.c (build_c_cast): Remove bogus hack when converting
  2871.     to a reference type.
  2872.  
  2873.     * cp-tree.h (lang_decl::vbase_init_list, DECL_VBASE_INIT_LIST):
  2874.     Removed, not used.
  2875.     (lang_stype::methods, lang_decl::next_method): New fields.
  2876.     (CLASSTYPE_METHODS, DECL_NEXT_METHOD):  New macros.
  2877.     * decl.c (duplicate_decls):  Preserve DECL_NEXT_METHOD.
  2878.  
  2879.     * cp-tree.h, decl2.c (flag_vtable_hack):  New flag.
  2880.     * decl2.c (finish_vtable_vardecl):  If flag_vtable_hack,
  2881.     and  !CLASSTYPE_INTERFACE_KNOWN, try to use the presence of
  2882.     a non-inline virtual function to control emitting of vtables.
  2883.     * class.c (finish_struct):  Build CLASSTYPE_METHODS list.
  2884.     * search.c (build_vbase_vtables_init):  Don't assemble_external
  2885.     (yet) if flag_vtable_hack.
  2886.     * class.c (build_vfn_ref):  Ditto.
  2887.  
  2888. Mon Feb 28 14:54:13 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2889.  
  2890.     * parse.y (component_decl): Don't include "typed_declspecs
  2891.     declarator ';'" speedup, since it breaks enums.
  2892.  
  2893. Fri Feb 25 15:43:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  2894.  
  2895.     * class.c (finish_struct):  Minor optimization for building
  2896.     fn_fields list.
  2897.  
  2898. Fri Feb 25 15:23:42 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2899.  
  2900.     * decl.c (start_function): Fix detection of function overloading.
  2901.  
  2902. Thu Feb 24 22:26:19 1994  Mike Stump  (mrs@cygnus.com)
  2903.  
  2904.     * lex.c (check_newline): #pragma interface can take a string
  2905.     argument, just like #pragma implementation.  #pragma implementation
  2906.     checks for garbage on the line, line #pragma interface does.  Main
  2907.     input files do not auto implement like named files, #pragma
  2908.     implementation must be used explicitly.
  2909.  
  2910. Thu Feb 24 17:09:01 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2911.  
  2912.     * parse.y (components): Handle list of one again.
  2913.     (notype_components): Ditto.
  2914.     (after_type_declarator1): Take maybe_raises out again.
  2915.  
  2916.     * gxxint.texi (Parser): Document additional r/r conflict.
  2917.  
  2918. Wed Feb 23 14:42:55 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2919.  
  2920.     * gxxint.texi (Parser): Add node.
  2921.  
  2922.     * Makefile.in (stamp-parse): Update expected conflict count.
  2923.  
  2924.     * parse.y (various): Replace "declmods declarator" with "declmods
  2925.     notype_declarator".  The comment saying that "declmods declarator ';'"
  2926.     corresponds to "int i;" was wrong; it corresponds to "const i;".
  2927.     (component_decl): Add "typed_declspecs declarator ';'" rule; this
  2928.     *does* correspond to "int i;".  Change "declmods components" to
  2929.     "declmods notype_components".
  2930.     (components): Don't deal with a list of one anymore.
  2931.     (notype_components): New nonterminal, corresponds to notype_declarator.
  2932.     ({after_,no}type_component_decl{,0}): More new nonterminals.
  2933.     ({after_,no}type_declarator): Fold in START_DECLARATOR token.
  2934.     Eliminates four reduce/reduce conflicts.
  2935.  
  2936.     (expr): Depend on nontrivial_exprlist instead of nonnull_exprlist.
  2937.     (nontrivial_exprlist): New nonterminal: A list of at least two
  2938.     expr_no_commas's.
  2939.     (nonnull_exprlist): Depend on nontrival_exprlist.
  2940.     Eliminates four reduce/reduce conflicts.
  2941.  
  2942.     (named_class_head): Move intermediate code block into separate
  2943.     nonterminal so that we can stick %prec EMPTY on it.
  2944.  
  2945.     Add more %prec EMPTY's to eliminate remaining shift/reduce
  2946.     conflicts.
  2947.  
  2948.     (after_type_declarator): Add maybe_raises to fndecl rules.
  2949.     (after_type_declarator_no_typename): Remove.
  2950.     For correctness.
  2951.  
  2952.     Document remaining reduce/reduce conflicts.
  2953.  
  2954. Tue Feb 22 12:10:32 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2955.  
  2956.     * search.c (get_base_distance): Only bash BINFO_INHERITANCE_CHAIN
  2957.     (TYPE_BINFO (type)) if we care about the path.
  2958.  
  2959.     * tree.c (lvalue_p): A COND_EXPR is an lvalue if both of the
  2960.     options are.
  2961.  
  2962. Mon Feb 21 19:59:40 1994  Mike Stump  (mrs@cygnus.com)
  2963.  
  2964.     * Makefile.in (mostlyclean): lex.c is a source file, don't
  2965.     remove.
  2966.  
  2967. Sat Feb 19 01:27:14 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2968.  
  2969.     * parse.y: Eliminate 20 shift/reduce conflicts.
  2970.  
  2971. Fri Feb 18 11:49:42 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2972.  
  2973.     * pt.c (type_unification): Add subr argument; if set, it means
  2974.     that we are calling ourselves recursively, so a partial match is OK.
  2975.     (unify): Support pointers to methods and functions.
  2976.     (tsubst): Support method pointers.
  2977.     * decl.c (build_ptrmemfunc_type): No longer static, so that
  2978.     tsubst can get at it.
  2979.  
  2980.     * init.c (is_aggr_typedef): Pretend template type parms are
  2981.     aggregates.
  2982.     * decl2.c (build_push_scope): If cname refers to a template type
  2983.     parm, just grin and nod.    
  2984.  
  2985.     * call.c (build_overload_call_real): Pass subr argument to
  2986.     type_unification.
  2987.     * pt.c (do_function_instantiation): Ditto.
  2988.     * class.c (instantiate_type): Ditto.
  2989.  
  2990.     * search.c (get_base_distance): If BINFO is a binfo, use it and
  2991.     don't mess with its BINFO_INHERITANCE_CHAIN.
  2992.  
  2993.     * cvt.c (convert_to_reference): Fix temporary generation.
  2994.     If ambiguous, return error_mark_node.
  2995.  
  2996.     * init.c (build_new): Put back some necessary code.
  2997.  
  2998. Thu Feb 17 15:39:47 1994  Jason Merrill  (jason@deneb.cygnus.com)
  2999.  
  3000.     * init.c (build_new): Deal with array types properly.
  3001.  
  3002.     * search.c (get_binfo): Become a shell for get_base_distance.
  3003.     (get_binfo_recursive): Lose.
  3004.     (get_base_distance_recursive): Find the path to the via_virtual base
  3005.     that provides the most access.
  3006.     (get_base_distance): Ditto.
  3007.  
  3008.     * parse.y (explicit_instantiation): Syntax is 'template class
  3009.     A<int>', not 'template A<int>'.
  3010.  
  3011.     * typeck.c (convert_for_initialization): Remove bogus warning.
  3012.  
  3013.     * parse.y (datadef): Revert patch of Oct 27.
  3014.  
  3015. Thu Feb 17 15:12:29 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  3016.  
  3017.     * class.c (build_vfn_ref):  Cast delta field to ptrdiff_type_node,
  3018.     rather than integer_type_node.  Does wonders for the Alpha.
  3019.  
  3020. Thu Feb 17 13:36:21 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3021.  
  3022.     * decl.c (build_ptrmemfunc_type): Make sure that the pmf type
  3023.     goes onto the same obstack as its target type.
  3024.  
  3025. Wed Feb 16 00:34:46 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3026.  
  3027.     * cvt.c (convert_to_reference): If converting via constructor
  3028.     on local level, go back to build_cplus_new approach.
  3029.  
  3030.     * tree.c (build_cplus_new): If with_cleanup_p, set cleanup slot
  3031.     to error_mark_node to prevent expand_expr from building a cleanup
  3032.     for this variable.
  3033.  
  3034.     * lex.c (default_assign_ref_body): Return *this from the memcpy
  3035.     version, too.
  3036.  
  3037.     * decl.c (grok_reference_init): Just return if called with
  3038.     error_mark_node, don't worry about initializing non-const reference
  3039.     with temporary.
  3040.  
  3041.     * cvt.c (convert_to_reference): Do the right thing for
  3042.     non-aggregate reference conversions, pedwarn when generating a
  3043.     non-const reference to a temporary.
  3044.  
  3045.     * class.c (finish_struct): TYPE_HAS_COMPLEX_{INIT,ASSIGN}_REF and
  3046.     TYPE_NEEDS_CONSTRUCTING all depend on TYPE_USES_VIRTUAL_BASECLASSES
  3047.     again.
  3048.  
  3049. Tue Feb 15 19:47:19 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3050.  
  3051.     * decl.c (grok_reference_init): Pawn off a lot of the work on
  3052.     convert_to_reference.  Generally do the right thing.
  3053.  
  3054.     * cvt.c (convert_to_reference): Conform to the initial comment;
  3055.     i.e. don't create temps if decl != error_mark_node.  Handle
  3056.     cleanups better for temps that do get created.  Don't pretend
  3057.     that we can use an 'A' to initialize a 'const double &' just by
  3058.     tacking on a NOP_EXPR.  Support LOOKUP_SPECULATIVELY.
  3059.  
  3060.     * call.c (build_method_call): Set TREE_HAS_CONSTRUCTOR on
  3061.     constructor calls.    
  3062.  
  3063. Mon Feb 14 14:50:17 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3064.  
  3065.     * decl.c (grok_reference_init): Make a temporary for initializing
  3066.     const reference from constant expression.
  3067.  
  3068. Mon Feb 14 11:31:31 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  3069.  
  3070.     * cp-tree.h, decl.c (set_identifier_local_value):  Deleted function.
  3071.     * decl.c (pushdecl):  Define decl in correct binding_level
  3072.     (which isn't always the inner_binding_level).
  3073.  
  3074.     * cvt.c (build_up_reference):  Don't ever call expand_aggr_init.
  3075.     It's ugly, and I don't think it's the right thing to do.
  3076.  
  3077.     * cp-tree.h, class.c, decl.c, decl2.c, sp/search.c: 
  3078.     Remove NEW_CLASS_SCOPING, assuming it is always 1.
  3079.     * decl.c (pop_decl_level):  Removed; manually inlined.
  3080.  
  3081. Sun Feb 13 19:04:56 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3082.  
  3083.     * class.h (candidate): Add basetypes field.
  3084.  
  3085.     * call.c (build_method_call): Do access checking after choosing a
  3086.     function, not before.
  3087.  
  3088.     * Makefile.in (cvt.o, call.o, method.o): Depend on class.h.
  3089.     (mostlyclean): Remove ../cc1plus.
  3090.  
  3091. Fri Feb 11 11:52:26 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3092.  
  3093.     * class.c (finish_struct): Don't allow adjusting access to a field
  3094.     of a base class if a local field has the same name.
  3095.  
  3096.     * error.c (dump_type_prefix): Output basetype for METHOD_TYPEs.
  3097.  
  3098. hu Jan 13 17:55:51 EST 1994 Gnanasekaran Swaminathan (gs4t@virginia.edu)
  3099.  
  3100.         * cp-tree.h (DESTRUCTOR_NAME_P): do not confuse AUTO_TEMP names
  3101.         with destructor names when either NO_DOLLAR_IN_LABEL or
  3102.         NO_DOT_IN_LABEL are not defined.
  3103.  
  3104.         Now `template <class T, T f(T&), const T*> class A {...}' works.
  3105.  
  3106.         * pt.c (grok_template_type): substitute template parm types
  3107.         with actual types in complex type as well.
  3108.         (coerce_template_parms): update the grok_template_type ()
  3109.         function call.
  3110.  
  3111.     * pt.c (tsubst): Traverse method list using DECL_CHAIN.
  3112.  
  3113.     * decl.c (grok_op_properties): Allow operator++/-- to have
  3114.     default arguments.
  3115.  
  3116.     * typeck2.c (store_init_value): Don't abort when called to
  3117.     initialize a type that needs constructing with a CONSTRUCTOR.
  3118.  
  3119.     * init.c (expand_aggr_init_1, CONSTRUCTOR case): If
  3120.     store_init_value fails, build and expand an INIT_EXPR.  If
  3121.     store_init_value succeeds, call expand_decl_init.
  3122.  
  3123. Fri Feb 11 02:49:23 1994  Mike Stump  (mrs@cygnus.com)
  3124.  
  3125.     * class.c (build_vbase_path): Use complete_type_p instead of
  3126.     resolves_to_fixed_type_p to determine if the virtual bases are in
  3127.     their right place for the type of expr.  Cures problem of thinking a
  3128.     virtual base class is one place, when it is in fact someplace else.
  3129.  
  3130. Fri Feb 11 00:26:46 1994  Mike Stump  (mrs@cygnus.com)
  3131.  
  3132.     * init.c (resolve_offset_ref): Make sure we first convert to
  3133.     intermediate type, if given, when dealing with members off `this'.
  3134.     Solves an incorrrect `type `foo' is not a base type for type
  3135.     `multiple'' when it is infact, a base type.
  3136.  
  3137. Thu Feb 10 21:49:35 1994  Mike Stump  (mrs@cygnus.com)
  3138.  
  3139.     * class.c (modify_other_vtable_entries): Use get_binfo, instead
  3140.     of binfo_value.  Solves problem with compiler giving a `base class
  3141.     `B' ambiguous in binfo_value (compiler error)' on complex MI
  3142.     herarchies, when a virtual function is first defied in a virtual
  3143.     base class.
  3144.  
  3145. Thu Feb 10 17:19:32 1994  Mike Stump  (mrs@cygnus.com)
  3146.  
  3147.     * class.c (build_vbase_path): Don't complain about ambiguous
  3148.     intermediate conversion when converting down to a virtual base
  3149.     class, even if they might seem to be ambiguous.
  3150.  
  3151. Thu Feb 10 12:18:26 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3152.  
  3153.     * typeck2.c (build_functional_cast): #if 0 out constructor
  3154.     inheritance code, improve error messages.
  3155.  
  3156.     * class.c (finish_base_struct): Complain about base with only
  3157.     non-default constructors in derived class with no constructors.
  3158.  
  3159.     * decl.c (grokdeclarator): Fix detection of virtual new/delete.
  3160.  
  3161. Wed Feb  9 22:02:32 1994  Mike Stump  (mrs@cygnus.com)
  3162.  
  3163.     * search.c (build_mi_virtuals, add_mi_virtuals,
  3164.     report_ambiguous_mi_virtuals): Removed unneeded code.
  3165.     * class.c (finish_struct_bits): Ditto.
  3166.  
  3167. Wed Feb  9 11:27:17 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3168.  
  3169.     * pt.c (end_template_instantiation): Push decl before
  3170.     pop_from_top_level.
  3171.  
  3172.     * typeck2.c (build_m_component_ref): Make sure datum is of
  3173.     aggregate type.
  3174.  
  3175.     * init.c (get_type_value): New function, returns
  3176.     IDENTIFIER_TYPE_VALUE or IDENTIFIER_CLASS_TYPE_VALUE or NULL_TREE.
  3177.  
  3178.     * call.c (build_method_call): Don't die on call to destructor for
  3179.     non-type.
  3180.  
  3181.     * decl.c (grokdeclarator): Complain about virtual op new and op
  3182.     delete, make static virtuals unvirtual instead of unstatic.
  3183.  
  3184.     * typeck.c (build_c_cast): Also call default_conversion on
  3185.     methods.
  3186.  
  3187.     * decl.c (grokdeclarator): Don't complain about anonymous
  3188.     bitfields.
  3189.  
  3190.     * parse.y (simple_stmt, for loops): Move the continue point after
  3191.     the cleanups.
  3192.  
  3193.     * class.c (finish_struct): Fix setting of
  3194.     TYPE_HAS_COMPLEX_INIT_REF.
  3195.  
  3196. Tue Feb  8 13:21:40 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3197.  
  3198.     * init.c (build_new): Deal with `new double (1)'.
  3199.  
  3200.     * class.c (finish_struct): TYPE_HAS_COMPLEX_*_REF are supersets of
  3201.     TYPE_HAS_REAL_*_REF, but TYPE_HAS_COMPLEX_INIT_REF is independent of
  3202.     TYPE_NEEDS_CONSTRUCTING.
  3203.  
  3204.     * decl.c (duplicate_decls): Propagate access decls.
  3205.  
  3206.     * typeck2.c (process_init_constructor): Accept empty_init_node
  3207.     for initializing unions.
  3208.  
  3209.     * class.c, lex.c, cp-tree.h: Use
  3210.     TYPE_HAS_COMPLEX_ASSIGN_REF where TYPE_HAS_REAL_ASSIGN_REF was used
  3211.     before, use TYPE_HAS_COMPLEX_INIT_REF for TYPE_NEEDS_CONSTRUCTING in
  3212.     some places.
  3213.  
  3214.     * decl.c (finish_decl): Don't complain about uninitialized const
  3215.     if it was initialized before.
  3216.  
  3217. Mon Feb  7 18:12:34 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3218.  
  3219.     * lex.c (default_assign_ref_body): Don't deal with vbases for
  3220.     now.
  3221.  
  3222.     * decl.c (finish_decl): Fix reversed logic for objects and other
  3223.     things that need to be constructed but have no initializer.
  3224.  
  3225.     * class.c (finish_struct): Don't set TYPE_HAS_* flags that are
  3226.     set by grok_op_properties or finish_decl.
  3227.  
  3228.     * decl.c: Don't warn about extern redeclared inline unless
  3229.     -Wextern-inline is given.
  3230.     * decl2.c (lang_decode_option): Ditto.
  3231.     * cp-tree.h: Ditto.
  3232.  
  3233. Mon Feb  7 17:29:24 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  3234.  
  3235.     * decl.c (pushdecl_with_scope): Fix thinko.  Add forward
  3236.     declaration.
  3237.  
  3238.     * decl.c (pushdecl_with_scope):  New function.
  3239.     * decl.c (pushdecl_top_level):  Use new function.
  3240.     * decl.c (pushtag):  Initialize newdecl.
  3241.     * decl.c (pushtag):  Push new type decl into correct scope.
  3242.  
  3243. Mon Feb  7 14:42:03 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3244.  
  3245.     * call.c, cvt.c, init.c, search.c, cp-tree.h:
  3246.     Eradicate LOOKUP_PROTECTED_OK.
  3247.  
  3248. Mon Feb  7 13:57:19 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  3249.  
  3250.     * decl.c (pushtag, xref_tag), cp-tree.h:  Add extra parameter
  3251.      'globalize' to signify implicit declarations.
  3252.     * decl.c (globalize_nested_type, maybe_globalize_type):  Removed.
  3253.     * decl.c (set_identifier_type_value_with_scope):  New function.
  3254.     * decl.c (set_identifier_local_value):  Simplify.
  3255.     * spew.c (yylex, do_addr):  Modify to return a _DEFN if a
  3256.     forward declaration (followed by ';' and not preceded by 'friend').
  3257.     * class.c, decl.c, except.c, init.c, parse.y,
  3258.     pt.c, search.c: Add new argument to calls to xref_tag and
  3259.     pushtag.
  3260.  
  3261. Mon Feb  7 00:22:59 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3262.  
  3263.     * cp-tree.h (ACCESSIBLY_UNIQUELY_DERIVED_P): New macro, means what
  3264.     ACCESSIBLY_DERIVED_FROM_P meant before.
  3265.     (ACCESSIBLY_DERIVED_FROM_P): Now disregards ambiguity.
  3266.  
  3267.     * cvt.c (build_up_reference): Call get_binfo with PROTECT == 1.
  3268.  
  3269.     * search.c (get_base_distance_recursive): Members and friends of
  3270.     a class X can implicitly convert an X* to a pointer to a private or
  3271.     protected immediate base class of X.
  3272.     (get_binfo_recursive): Ditto.
  3273.     (get_base_distance): Ignore ambiguity if PROTECT < 0.
  3274.     (get_binfo): Lose multiple values of PROTECT.
  3275.     (compute_access): Protected is OK if the start of the
  3276.     search is an accessible base class of current_class_type.
  3277.  
  3278.     * method.c (build_opfncall): Do check access on operator new here.
  3279.  
  3280.     * decl.c (finish_function): Don't check access on operator new
  3281.     here.
  3282.  
  3283. Sun Feb  6 14:06:58 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3284.  
  3285.     * decl.c (xref_tag): The base of a derived struct is NOT always
  3286.     public.  Duh.
  3287.  
  3288.     * pt.c (do_explicit_instantiation): New function, called from
  3289.     parser to do explicit function instantiation.
  3290.     (type_unification): Allow the args list to be terminated with
  3291.     void_list_node.
  3292.     (do_pending_expansions): Look at i->interface for non-member
  3293.     templates.
  3294.  
  3295.     * parse.y (datadef): Move explicit_instantiation here.
  3296.     (structsp): From here.
  3297.     (datadef): Complain about `int;'.
  3298.  
  3299. Sun Feb  6 12:33:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
  3300.  
  3301.     * pt.c (end_template_instantiation), cp-tree.h:  Remove unused
  3302.     second parameter, and simplify first from a TREE_LIST where
  3303.     we only care about its TREE_VALUE to just the value (an IDENTIFIER).
  3304.     * pt.c (instantiate_member_templates):  Simplify argument list
  3305.     from a TREE_LIST to just an IDENTIFIER.
  3306.     * lex.c (yyprint):  PRE_PARSED_CLASS_DECL is now just an IDENTIFIER.
  3307.     * parse.y (template_instantiate_once):  Simplify accordingly.
  3308.     * decl.c (inner_binding_level): New.  Use various places to
  3309.     simplify.
  3310.  
  3311. Sun Feb  6 02:49:37 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3312.  
  3313.     * typeck2.c (build_functional_cast): int() -> int(0).
  3314.  
  3315. Sat Feb  5 00:53:21 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3316.  
  3317.     * class.c (finish_struct): Don't do a bitwise copy for op= if the
  3318.     class has a virtual function table.
  3319.  
  3320.     * typeck.c (convert_for_initialization): Restore warnings about
  3321.     not using defined op=.  Should really be my_friendly_aborts, I
  3322.     s'pose.
  3323.  
  3324. Fri Feb  4 14:21:00 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3325.  
  3326.     * class.c (finish_struct): Tidy up conditions for doing bitwise
  3327.     copies of objects.
  3328.  
  3329.     * decl.c (build_default_constructor): #if 0 out.
  3330.  
  3331.     * *: Eradicate TYPE_GETS_{ASSIGNMENT,ASSIGN_REF,CONST_ASSIGN_REF,
  3332.     CONST_INIT_REF}, TYPE_HAS_REAL_CONSTRUCTOR.
  3333.  
  3334.     * decl.c (grokdeclarator): Don't return void_type_node for
  3335.     friends being defined here.
  3336.  
  3337.     * init.c (perform_member_init): Only do the init if it's useful.
  3338.  
  3339.     * lex.c (default_copy_constructor_body): If we don't need to do
  3340.     memberwise init, just call __builtin_memcpy.
  3341.     (default_assign_ref_body): Ditto.
  3342.  
  3343.     * decl.c (grokdeclarator): If friendp && virtualp, friendp = 0.
  3344.  
  3345. Fri Feb  4 13:02:56 1994  Mike Stump  (mrs@cygnus.com)
  3346.  
  3347.     * lex.c (reinit_parse_for_method, cons_up_default_function):
  3348.     Don't give warn_if_unknown_interface warning when it came from a
  3349.     system header file.
  3350.     * pt.c (end_template_decl, instantiate_template): Ditto.
  3351.     * decl.c (start_decl): Ditto.
  3352.  
  3353. Fri Feb  4 00:41:21 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3354.  
  3355.     * decl.c (grokdeclarator): Don't try to set TYPE_WAS_ANONYMOUS on
  3356.     enums.
  3357.  
  3358.     * decl2.c (constructor_name_full): Use IS_AGGR_TYPE_CODE instead of
  3359.     IS_AGGR_TYPE, since we don't know it's a type.
  3360.  
  3361. Thu Feb  3 11:36:46 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3362.  
  3363.     * decl.c (grokdeclarator): Don't complain about anonymous unions.
  3364.  
  3365.     * cp-tree.h (TYPE_WAS_ANONYMOUS): This struct was originally
  3366.     anonymous, but had a name given to it by a typedef.
  3367.  
  3368.     * decl.c (grokdeclarator): When renaming an anonymous struct, set
  3369.     TYPE_WAS_ANONYMOUS.
  3370.  
  3371.     * decl2.c (constructor_name_full): Use TYPE_WAS_ANONYMOUS.
  3372.  
  3373.     * cp-tree.h (DECL_UNDEFINED_FRIENDS): #if 0 out.
  3374.  
  3375.     * init.c (xref_friend): Don't set up DECL_UNDEFINED_FRIENDS.
  3376.     (embrace_waiting_friends): Don't use DECL_UNDEFINED_FRIENDS.
  3377.     
  3378.     * decl.c (grokdeclarator): Set TYPE_NESTED_NAME properly on nested
  3379.     anonymous structs that get typedef'd.
  3380.  
  3381.     * decl.c (grokdeclarator): Always return void_type_node for
  3382.     friends.
  3383.  
  3384.     * error.c (dump_function_decl): Don't use DECL_CLASS_CONTEXT for
  3385.     friends.
  3386.     (dump_function_decl): Don't print out default args for
  3387.     a function used in an expression.
  3388.  
  3389.     * decl.c (grokdeclarator): Give error on abstract declarator used
  3390.     in an invalid context (i.e. `void (*)();').
  3391.  
  3392.     * error.c (cp_line_of): Support _TYPE nodes.
  3393.     (cp_file_of): Ditto.
  3394.  
  3395.     * cvt.c (build_up_reference): Don't abort if passed a SAVE_EXPR;
  3396.     it can happen for the RHS of an assignment stmt where the LHS is
  3397.     a COND_EXPR.
  3398.  
  3399.     * init.c (expand_aggr_init_1): Deal with bracketed initializer
  3400.     lists properly.
  3401.  
  3402.     * class.c (finish_struct): Deal with enumerators and typedefs
  3403.     again.
  3404.  
  3405. Wed Feb  2 11:30:22 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3406.  
  3407.     * class.c (finish_struct): Tidy up loop over fields.
  3408.  
  3409.     * errfn.c (cp_thing): Don't advance twice after a format.
  3410.  
  3411.     * class.c (finish_struct): Complain about needing a constructor
  3412.     if a member has only non-default constructors, and don't try to
  3413.     generate a default constructor.
  3414.  
  3415.     * decl.c (finish_decl): Also do the constructor thing if
  3416.     TYPE_NEEDS_CONSTRUCTING is set (for arrays).
  3417.  
  3418.     * search.c (unuse_fields): New function: mark all fields in this
  3419.     type unused.
  3420.     (dfs_unuse_fields): Helper function.
  3421.  
  3422.     * class.c (pushclass): If the new class is the same as the old
  3423.     class, still unuse the fields.
  3424.     (unuse_fields): Move to search.c.
  3425.  
  3426.     * decl.c (grok_op_properties): Add friendp argument.
  3427.     (grokfndecl): Pass it.
  3428.     (start_method): Ditto.
  3429.  
  3430.     * decl2.c (delete_sanity): Add use_global_delete parameter to catch
  3431.     ::delete calls.
  3432.  
  3433.     * parse.y (unary_expr): Pass new parameter to delete_sanity.
  3434.  
  3435.     * lex.c (default_copy_constructor_body): Don't choke if the union
  3436.     has no fields.
  3437.     (default_assign_ref_body): Ditto.
  3438.  
  3439.     * call.c (compute_conversion_costs_ansi): Do the right thing for
  3440.     ellipsis matches.
  3441.  
  3442.     * decl.c (push_to_top_level): Optimize.
  3443.  
  3444.     * decl.c (start_function): Look for the lexical scope of a friend
  3445.     in DECL_CLASS_CONTEXT.
  3446.  
  3447.     * init.c (do_friend): Set DECL_CLASS_CONTEXT on global friends.
  3448.  
  3449. Tue Feb  1 15:59:24 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3450.  
  3451.     * cp-tree.h (TREE_GETS_PLACED_NEW): New macro.
  3452.  
  3453.     * init.c (init_init_processing): Don't assign BIN/BID to the
  3454.     IDENTIFIER_GLOBAL_VALUEs of their respective operators.
  3455.     (build_new): Check TREE_GETS_PLACED_NEW.
  3456.  
  3457.     * decl.c (grok_op_properties): Don't set TREE_GETS_NEW for a decl of
  3458.     op new with placement, set TREE_GETS_PLACED_NEW.
  3459.  
  3460.     * cp-tree.h (ANON_UNION_P): New macro.  Applies to decls.
  3461.  
  3462.     * class.c (finish_struct): Don't treat anonymous unions like
  3463.     other aggregate members.  Do synthesize methods for unions without
  3464.     a name, since they may or may not be "anonymous unions".
  3465.  
  3466.     * decl2.c (grok_x_components): Wipe out memory of synthesized methods
  3467.     in anonymous unions.
  3468.  
  3469.     * lex.c (default_copy_constructor_body): Support unions.
  3470.     (default_assign_ref_body): Ditto.
  3471.  
  3472. Mon Jan 31 12:07:30 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3473.  
  3474.     * cp-tree.h: Fix documentation of LOOKUP_GLOBAL, add prototypes.
  3475.  
  3476.     * error.c (args_as_string): New function (%A), like type_as_string
  3477.     except NULL_TREE -> "..."
  3478.  
  3479.     * call.c (build_overload_call_real): Fix for new overloading.
  3480.  
  3481.     * decl.c (grok_op_properties): Set all of the TYPE_OVERLOADS_* flags
  3482.     here.
  3483.  
  3484.     * parse.y (operator_name): Instead of here.
  3485.  
  3486.     * typeck2.c (build_functional_cast): Treat a TREE_LIST as a list
  3487.     of functions.
  3488.  
  3489.     * call.c (build_overload_call_real): Support LOOKUP_SPECULATIVELY.
  3490.  
  3491.     * method.c (build_opfncall): Don't need to massage return value
  3492.     any more, call build_overload_call with all flags.
  3493.  
  3494.     * typeck.c (build_x_binary_op): Put back speculative call to
  3495.     build_opfncall.
  3496.     (build_x_unary_op): Ditto.
  3497.     (build_x_conditional_expr): Ditto.
  3498.  
  3499. Mon Jan 31 10:00:30 1994  Mike Stump  (mrs@cygnus.com)
  3500.  
  3501.     * cvt.c (build_type_conversion_1): Change call to pedwarn into
  3502.     warning, and conditionalize upon warn_cast_qual.
  3503.  
  3504. Fri Jan 28 11:48:15 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3505.  
  3506.     * search.c (lookup_field): If xbasetype is a binfo, copy it to
  3507.     avoid clobbering its inheritance info.
  3508.  
  3509.     * call.c (build_method_call): Don't overwrite basetype_path with
  3510.     TYPE_BINFO (inst_ptr_basetype) if they have the same type.
  3511.  
  3512.     * search.c (compute_access): Fix handling of protected inheritance
  3513.     and friendship with the enclosing class.
  3514.  
  3515.     * typeck2.c (store_init_value): Allow passing of TREE_CHAIN for
  3516.     initialization of arbitrary variable.
  3517.  
  3518.     * typeck2.c (build_functional_cast): Only try calling a method if
  3519.     one exists.
  3520.  
  3521.     * decl.c (grokdeclarator): Move handling of constructor syntax
  3522.     initialization into first loop for generality.
  3523.     (parmlist_is_random): Lose.
  3524.  
  3525.     * lex.c (cons_up_default_function): Set TREE_PARMLIST on arguments
  3526.     to default function.
  3527.  
  3528. Thu Jan 27 19:26:51 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3529.  
  3530.     * decl.c (grokparms): Abort if we get called with something we don't
  3531.     expect.
  3532.  
  3533. Thu Jan 27 17:37:25 1994  Mike Stump  (mrs@cygnus.com)
  3534.  
  3535.     * call.c (build_overload_call_real): Change argument complain to
  3536.     flags to match style of rest of code.  Pass it down to
  3537.     build_function_call_real as necessary.
  3538.     * call.c (build_overload_call, build_overload_call_maybe): Change
  3539.     argument complain to flags to match style of rest of code.
  3540.     * cp-tree.h (build_function_call_real): Added fourth flags
  3541.     argument.
  3542.     * cvt.c (convert_to_reference): Only give warning messages, if
  3543.     LOOKUP_COMPLAIN is set.
  3544.     * typeck.c (build_x_function_call): Change simple complain
  3545.     argument to build_overload_call_maybe and build_overload_call, to
  3546.     LOOKUP_COMPLAIN to match style of rest of code.
  3547.     * typeck2.c (build_functional_cast): Ditto.
  3548.     * typeck.c (build_function_call_real): Add flags, so that we can
  3549.     not complain, if we don't want to complain.  Complain about
  3550.     arguments, if we are complaining, otherwise don't.
  3551.     * typeck.c (build_function_call, build_function_call_maybe):
  3552.     Stick in flags argument.
  3553.     * typeck.c (build_x_binary_op, build_x_unary_op,
  3554.     build_x_conditional_expr, build_x_compound_expr): Follow style of
  3555.     build_x_indirect_ref, as it is more correct and more common.
  3556.  
  3557. Thu Jan 27 14:36:20 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3558.  
  3559.     * call.c (build_method_call): Don't check for being called with
  3560.     a pointer.
  3561.  
  3562.     * decl2.c (finish_file): Don't play with DECL_CLASS_CONTEXT for the
  3563.     static initializer function.
  3564.  
  3565.     * init.c (build_member_call): Use convert_force here, too.
  3566.  
  3567.     * search.c (compute_access): Only treat static members specially
  3568.     if they are referenced directly.
  3569.  
  3570. Wed Jan 26 18:28:14 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3571.  
  3572.     * gxxint.texi (Access Control): New node.
  3573.  
  3574.     * search.c (current_scope): New function; returns whichever of
  3575.     current_class_type and current_function_decl is the most nested.
  3576.     (compute_access): Total overhaul to make it clearer and more
  3577.     correct.  Don't use the cache for now; in the only situation where
  3578.     it was used before, it gained nothing.  This frees up three of the
  3579.     DECL_LANG_FLAGs for possible other use!
  3580.  
  3581.     * cp-tree.h: #if 0 out DECL_PUBLIC & friends.
  3582.  
  3583.     * typeck.c (build_component_ref_1): Don't check DECL_PUBLIC.
  3584.  
  3585.     * call.c (build_method_call): Use convert_force to cast `this' --
  3586.     rely on the access checking for the method itself.
  3587.  
  3588.     * init.c (is_friend): Do the nesting thing, handle types.  I am
  3589.     my own friend.
  3590.     (is_friend_type): Become a shell for is_friend.
  3591.     (add_friend): Never stick in ctype.
  3592.     Why are the friendship functions in init.c, anyway?
  3593.  
  3594. Wed Jan 26 17:50:00 1994  Mike Stump  (mrs@cygnus.com)
  3595.  
  3596.     * cvt.c (build_type_conversion_1): Don't conditionalize call to
  3597.     pedwarn upon pedantic.
  3598.  
  3599. Wed Jan 26 17:20:46 1994  Mike Stump  (mrs@cygnus.com)
  3600.  
  3601.     * cvt.c (convert_to_reference): Add 8.4.3 checking so that one
  3602.     gets a warning if one tries to initialize a non-const & from a
  3603.     non-lvalue.
  3604.     * cvt.c (convert_to_reference): Use %P format for argument
  3605.     numbers in warnings.
  3606.  
  3607. Wed Jan 26 14:35:06 1994  Mike Stump  (mrs@cygnus.com)
  3608.  
  3609.     * init.c (build_delete): Follow style in call.c to construct the
  3610.     virtual call to the desctructor, as that code is right.  Fixes a
  3611.     problem of the compiler saying a pointer conversion is ambiguous.
  3612.  
  3613. Wed Jan 26 11:28:14 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3614.  
  3615.     * cp-tree.h (VTABLE_NAME_P): Change other occurrence of
  3616.     VTABLE_NAME_FORMAT to VTABLE_NAME.
  3617.  
  3618.     * *: s/visibility/access/g
  3619.  
  3620. Tue Jan 25 18:39:12 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3621.  
  3622.     * typeck.c (build_modify_expr): Don't smash references if INIT_EXPR.
  3623.  
  3624. Tue Jan 25 13:54:29 1994  Mike Stump  (mrs@cygnus.com)
  3625.  
  3626.     * init.c (build_delete): Back out Jan 17th & 18th pacthes, as
  3627.     they break libg++.
  3628.  
  3629. Tue Jan 25 13:11:45 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3630.  
  3631.     * decl.c (duplicate_decls): Fix pointer arithmetic.
  3632.  
  3633. Mon Jan 24 15:50:06 1994  Chip Salzenberg  (chip@fin.uucp)
  3634.  
  3635.         [ cp-* changes propagated from c-* changes in 940114 snapshot ]
  3636.         * cp-parse.y (maybe_attribute): Allow multiple __attribute__
  3637.         clauses on a declaration.
  3638.  
  3639. Mon Jan 24 17:06:23 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3640.  
  3641.     * class.c (finish_struct): Do synthesize methods for anon
  3642.     structs, just not unions.
  3643.  
  3644. Mon Jan 24 13:50:13 1994  Kung Hsu  (kung@mexican.cygnus.com)
  3645.  
  3646.     * decl.c (xref_tag): handle anonymous nested type.
  3647.     * decl.c (globalize_nested_type): add no globalize bit check.
  3648.     * spew.c (hack_more_ids) : templated nested decl not push top
  3649.     level.
  3650.  
  3651.     * parse.y : get rid of 'goto do_components'. It is much better
  3652.     for debugging.
  3653.  
  3654.     * decl.c (is_anon_name): get rid of the function and use the
  3655.     macro ANON_AGGRNAME_P.
  3656.     * pt.c : ditto.
  3657.  
  3658. Fri Jan 21 14:06:02 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3659.  
  3660.     * class.c (finish_struct): Don't synthesize any methods for
  3661.     anonymous structs/unions.
  3662.  
  3663.     * typeck.c (build_modify_expr): Don't treat pmf's as class objects.
  3664.  
  3665. Thu Jan 20 18:56:46 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3666.  
  3667.     * method.c (build_opfncall): Call build_indirect_ref on
  3668.     synthesized instance for operator delete.
  3669.  
  3670.     * pt.c (type_unification): Don't abort if called with a list of
  3671.     types in ARGS.
  3672.  
  3673.     * class.c (instantiate_type): Deal with function templates.
  3674.  
  3675. Thu Jan 20 16:55:35 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
  3676.  
  3677.     * Makefile.in (CC): Default to cc not gcc.
  3678.  
  3679. Thu Jan 20 13:47:54 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3680.  
  3681.     * typeck.c (build_modify_expr): Call constructor if appropriate.
  3682.  
  3683.     * decl.c (push_to_top_level): Clear out class-level bindings cache.
  3684.  
  3685. Wed Jan 19 13:51:22 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3686.  
  3687.     * call.c (resolve_scope_to_name): Work recursively (previously only
  3688.     looked down one level).
  3689.  
  3690.     * lex.c (do_pending_inlines): If we're still dealing with the last
  3691.     batch of inlines, don't start working on a new one.
  3692.  
  3693.     * Makefile.in (stamp-parse): Update conflict count.
  3694.     (TAGS): Fix.
  3695.  
  3696.     * parse.y (explicit_instantiation): New rule; implements
  3697.     'template A<int>' syntax (though not 'template foo(int)' yet).
  3698.     (structsp): Add explicit_instantiation.
  3699.  
  3700. Tue Jan 18 13:53:05 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3701.  
  3702.     * class.c (finish_struct, etc.): Simplify decision to synthesize
  3703.     a destructor.
  3704.  
  3705.     * call.c, class.c, cp-tree.h, decl.c, init.c,
  3706.     ptree.c, search.c, typeck.c, typeck2.c: Nuke
  3707.     TYPE_NEEDS_CONSTRUCTOR (change all calls to TYPE_NEEDS_CONSTRUCTING).
  3708.     * init.c (expand_aggr_init_1): Don't try non-constructor methods
  3709.     of initializing objects.
  3710.     (build_new): Don't try other methods if the constructor lookup fails.
  3711.  
  3712.     * class.c (finish_base_struct): Set cant_have_default_ctor and
  3713.     cant_synth_copy_ctor properly.
  3714.     (finish_struct): Ditto.
  3715.  
  3716. Mon Jan 17 13:58:18 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3717.  
  3718.     * typeck.c (build_modify_expr_1): #if 0 out again.
  3719.     (build_modify_expr): #if 0 out memberwise init code again.
  3720.  
  3721.     * lex.c (default_copy_constructor_body): Be const-correct.
  3722.     (default_assign_ref_body): Ditto.
  3723.  
  3724.     * init.c (perform_member_init): Use TYPE_HAS_CONSTRUCTOR to decide
  3725.     whether or not to use it, rather than TYPE_NEEDS_CONSTRUCTING.
  3726.     (expand_aggr_init): Disable silent conversion from initializer list
  3727.     to list of args for a constructor.
  3728.  
  3729.     * class.c (base_info): Lose needs_default_ctor.
  3730.     (finish_base_struct): Ditto.
  3731.     (finish_struct): Ditto.
  3732.  
  3733.     * decl.c (init_decl_processing): Don't turn off flag_default_inline
  3734.     just because flag_no_inline is on.
  3735.     (finish_decl): Use TYPE_HAS_CONSTRUCTOR to decide to use
  3736.     constructor.
  3737.  
  3738.     * class.c (finish_struct): Synthesize default ctor whenever
  3739.     allowed.
  3740.  
  3741.     * Makefile.in (TAGS): Don't try to run etags on cp-parse.y.
  3742.  
  3743. Sat Jan 15 18:34:33 1994  Mike Stump  (mrs@cygnus.com)
  3744.  
  3745.     * Makefile.in, configure: Handle the C++ front-end in a
  3746.     subdirectory.
  3747.     * cp-*: Move C++ front-end to cp/*.
  3748.  
  3749. Fri Jan 14 14:09:37 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3750.  
  3751.     * cp-typeck.c (build_function_call_real): Modify to match other
  3752.     instances of taking the address of the function.
  3753.  
  3754.     * cp-class.c (finish_struct): Set TYPE_HAS_REAL_CONSTRUCTOR to 1 if
  3755.     there are non-synthesized constructors.
  3756.     Only set TYPE_NEEDS_CONSTRUCTOR if TYPE_HAS_REAL_CONSTRUCTOR.
  3757.     Always generate copy constructor if possible.
  3758.  
  3759.     * cp-tree.h (lang_type): Add has_real_constructor bitfield.
  3760.     (TYPE_HAS_REAL_CONSTRUCTOR): Define.
  3761.  
  3762.     * cp-lex.c (default_copy_constructor_body): Use init syntax
  3763.     for all bases.
  3764.  
  3765.     * cp-type2.c (store_init_value): Only give error for initializer list
  3766.     if TYPE_HAS_REAL_CONSTRUCTOR.
  3767.  
  3768. Thu Jan 13 15:38:29 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3769.  
  3770.     * cp-tree.h (DECL_SYNTHESIZED): Add defn.
  3771.     (lang_decl): Add synthesized bitfield to decl_flags.
  3772.  
  3773.     * cp-lex.c (cons_up_default_function): Use DECL_SYNTHESIZED to mark
  3774.     artificial methods, rather than a line # of 0.
  3775.  
  3776. Fri Jan 14 18:25:29 1994  Kung Hsu  (kung@mexican.cygnus.com)
  3777.  
  3778.     * cp-decl (xref_tag): fix a bug in conflict type.
  3779.     * cp-parse.y : add SCOPED_NAME for uninstantiated template nested
  3780.     type reference.
  3781.     * cp-spew.c (yylex) : generated SCOPED_NAME token.
  3782.     * cp-lex.c (yyprint): handle SCOPED_NAME.
  3783.  
  3784. Fri Jan 14 17:00:29 1994  Mike Stump  (mrs@cygnus.com)
  3785.  
  3786.     * cp-decl.c (pushdecl): Revert patch from Jan 11 19:33:03, as it is
  3787.     not right.
  3788.  
  3789. Thu Jan 13 14:00:35 1994  Kung Hsu  (kung@mexican.cygnus.com)
  3790.  
  3791.     * cp-decl2.c (grok_x_components): fix a bug that enum type does not
  3792.     have type_flags.
  3793.  
  3794. Thu Jan 13 11:39:34 1994  Mike Stump  (mrs@cygnus.com)
  3795.  
  3796.     Ensure that all vtable pointers are initialized with all the right
  3797.     values.
  3798.  
  3799.     * cp-class.c (is_normal): Changed to reflect new meaning of
  3800.     CLASSTYPE_VFIELD_PARENT.
  3801.     * cp-class.c (maybe_fixup_vptrs): Use of
  3802.     CLASSTYPE_NEEDS_VIRTUAL_REINIT here is misguided.  Use
  3803.     BINFO_MODIFIED instead.
  3804.     * cp-class.c (finish_struct): Changed to reflect new meaning of
  3805.     CLASSTYPE_VFIELD_PARENT.
  3806.     * cp-decl.c (get_binfo_from_vfield): Removed, unneeded now.
  3807.     * cp-decl.c (finish_function): Use init_vtbl_ptrs, instead of open
  3808.     coding it here.
  3809.     * cp-init.c (init_vfields): Changed name to init_vtbl_ptrs, and
  3810.     re-implement.
  3811.     * cp-init.c (emit_base_init): Use new name init_vtbl_ptrs.
  3812.     * cp-tree.h (vfield_parent): Changed to integer.
  3813.     * cp-tree.h (CLASSTYPE_VFIELD_PARENT): Changed docs to reflect new
  3814.     meaning.
  3815.     * cp-tree.h (init_vtbl_ptrs): Added init_vtbl_ptrs.
  3816.  
  3817. Wed Jan 12 18:24:16 1994  Kung Hsu  (kung@mexican.cygnus.com)
  3818.  
  3819.     * cp-decl.c (xref_tag): re-implement globalize nested type.
  3820.     * cp-decl2.c (grok_x_components): ditto.
  3821.     * cp-parse.y: ditto.
  3822.     * cp-tree.h (lang_type): add no_globalize bit in type_flags.
  3823.  
  3824. Wed Jan 12 14:08:09 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3825.  
  3826.     * cp-decl.c (grokdeclarator): Don't set TREE_PUBLIC on friend
  3827.     decls with a definition attached.
  3828.  
  3829.     * cp-typeck.c (build_modify_expr): Undo previous change in the case
  3830.     of INIT_EXPRs.
  3831.  
  3832. Tue Jan 11 19:33:03 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3833.  
  3834.     * cp-typeck.c (build_modify_expr): Replace code for generating
  3835.     assignment semantics for classes with an error.
  3836.     (build_modify_expr_1): #if 0 out.
  3837.  
  3838.     * cp-decl.c (pushdecl): Patch bogus design of pushdecl
  3839.     behavior for overloaded functions (it doesn't push anything).
  3840.  
  3841.     * cp-class.c (finish_struct): When generating default op=,
  3842.     set TYPE_HAS_ASSIGNMENT.
  3843.  
  3844. Mon Jan 10 18:48:06 1994  Mike Stump  (mrs@cygnus.com)
  3845.  
  3846.     * cp-cvt.c (convert): Make {double, clashing enum} -> enum
  3847.     invalid.
  3848.     * cp-typeck.c (convert_for_assignment): Simplify.
  3849.     * cp-decl2.c (warn_enum_clash): Removed.
  3850.     * invoke.texi (-Wenum-clash): Removed.
  3851.     * toplev.c (-Wenum-clash): Removed.
  3852.  
  3853. Mon Jan 10 17:48:37 1994  Kung Hsu  (kung@mexican.cygnus.com)
  3854.  
  3855.     * cp-decl.c (finish_decl): fix incorrect popclass call.
  3856.  
  3857.     * cp-decl.c (is_anon_name): new function, check whether the name
  3858.     is anonymous name generated by compiler.
  3859.     * cp-decl.c (grokdeclarator): allow nested SCOPE_REF
  3860.     * cp-spew.c (hack_more_ids): handle nested type in template.
  3861.     * cp-parse.y : handle nested type reference in uninstantiated
  3862.     template.
  3863.     * cp-call.c (build_method_call): handle uninstantiated template
  3864.     case.
  3865.     * cp-pt.c (search_nested_type_in_tmpl): new function, search nested 
  3866.     type in    template.
  3867.     * cp-pt.c (lookup_nested_type_by_name): new function, lookup nested 
  3868.     type by name.
  3869.     * cp-pt.c (tsubst): handle nested type search by name.
  3870.  
  3871. Mon Jan 10 14:32:18 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3872.  
  3873.     * cp-init.c (build_member_call): Propagate qualifiers to new type.
  3874.  
  3875.     * cp-call.c (build_method_call): Count functions the new way.
  3876.  
  3877. Fri Jan  7 19:03:26 1994  Jason Merrill  (jason@deneb.cygnus.com)
  3878.  
  3879.     * cp-decl.c (pushtag): Set DECL_ASSEMBLER_NAME for nested classes,
  3880.     too.
  3881.  
  3882. Tue Jan  4 16:45:51 1994  Kung Hsu  (kung@cirdan.cygnus.com)
  3883.  
  3884.     * cp-parse.y: change to handle whether to globalize nested class.
  3885.     * cp-decl.c(xref_tag, maybe_globalize_type): Ditto.
  3886.  
  3887. Mon Jan  3 22:22:32 1994  Gerald Baumgartner  (gb@cygnus.com)
  3888.  
  3889.     * Makefile.in cp-call.c cp-class.c cp-cvt.c cp-decl.c cp-decl2.c
  3890.     cp-error.c cp-init.c cp-lex.c cp-lex.h cp-method.c cp-parse.y
  3891.     cp-spew.c cp-tree.c cp-tree.h cp-type2.c cp-typeck.c cp-xref.c
  3892.     gplus.gperf toplev.c: Incorporated C++ signature extension.
  3893.     * cp-sig.c: New file, contains most of signature processing.
  3894.     * cp-hash.h: Regenerated from gplus.gperf.
  3895.  
  3896.     * gcc.1 g++.1: Added explanation for  the `-fhandle-signatures'
  3897.     and `-fno-handle-signatures' command line flags.
  3898.  
  3899.     * gcc.texi: Changed the last-modification date.
  3900.     * invoke.texi: Added `-fhandle-signatures' in the list of
  3901.     C++ language options.  Added explanation for this option.
  3902.  
  3903. Tue Dec 28 21:10:03 1993  Mike Stump  (mrs@cygnus.com)
  3904.  
  3905.     * cp-init.c (expand_vec_init): Remove comptypes test, as it is too
  3906.     harsh here.
  3907.  
  3908. Tue Dec 28 13:42:22 1993  Mike Stump  (mrs@cygnus.com)
  3909.  
  3910.     * cp-pt.c (do_pending_expansions): Decide to expand a template
  3911.     member function, based upon it's class type, not the class type of
  3912.     the first place it was declared.
  3913.  
  3914. Tue Dec 28 05:42:31 1993  Mike Stump  (mrs@cygnus.com)
  3915.  
  3916.     * cp-class.c (is_normal): New routine, use to determine when the
  3917.     given binfo is the normal one.  (The one that should have the simple
  3918.     vtable name.)
  3919.     * cp-class.c (modify_other_vtable_entries): Use DECL_ASSEMBLER_NAME
  3920.     to check if two fndecls are `the same'.  Sometimes this routine can
  3921.     modify the main vtable, and normal should be 1, in that case, so use
  3922.     is_normal() to determine if this is the main vtable for the class.
  3923.     Don't recurse down virtual bases, as they are shared, and we take
  3924.     care of them elsewhere.
  3925.     * cp-class.c (modify_vtable_entries): If we have already updated the
  3926.     vtable with the new virtual, don't do it again.
  3927.     * cp-class.c (finish_struct): Set CLASSTYPE_VFIELD_PARENT as
  3928.     appropriate.  Do virtual function overriding in virtual bases, after
  3929.     normal overriding, so that the base function list in DECL_VINDEX is
  3930.     not overridden, before we have a chance to run through the list.
  3931.     Use DECL_ASSEMBLER_NAME to check if two fndecls are `the same'.
  3932.     Make sure we pass the right address into modify_vtable_entries.
  3933.     * cp-tree.h (CLASSTYPE_VFIELD_PARENT): New field to indicate which
  3934.     binfo is the one that has the vtable that we based our vtable on.
  3935.  
  3936. Fri Dec 24 09:40:52 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
  3937.  
  3938.     * cp-typeck.c (c_expand_start_case): Use default_conversion to
  3939.     convert expression from reference type if necessary.
  3940.  
  3941. Wed Dec 22 17:58:43 1993  Jason Merrill  (jason@deneb.cygnus.com)
  3942.  
  3943.     * cp-typeck.c (build_unary_op): Make sure that it's a TREE_LIST before
  3944.     trying to read its TREE_VALUE.
  3945.  
  3946.     * cp-class.c (finish_struct_methods): Clear DECL_IN_AGGR_P here.
  3947.     (finish_struct): Instead of here.
  3948.  
  3949. Tue Dec 21 14:34:25 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
  3950.  
  3951.     * cp-tree.c (list_hash_lookup_or_cons): Make sure the type doesn't
  3952.     have TYPE_PTRMEMFUNC_P set before we try to build its
  3953.     CLASSTYPE_ID_AS_LIST.
  3954.     (get_decl_list): Likewise, when trying to read it.
  3955.  
  3956.     * cp-tree.h (VTABLE_NAME): No def with NO_{DOLLAR,DOT} defined.
  3957.     (VTABLE_NAME_P): Use it instead of VTABLE_NAME_FORMAT.
  3958.  
  3959. Mon Dec 20 13:35:03 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
  3960.  
  3961.     * cp-typeck.c (rationalize_conditional_expr): New function.
  3962.     (unary_complex_lvalue): Use it.
  3963.     (build_modify_expr): Use it, since trying to do an ADDR_EXPR of it
  3964.     with build_unary_op won't cut it.  Don't wrap the COND_EXPR with a
  3965.     SAVE_EXPR either.
  3966.  
  3967.     * cp-decl2.c (explicit_warn_return_type): Deleted variable.
  3968.     (lang_decode_option): Set warn_return_type, not explicit_*, for
  3969.     -Wreturn-type and -Wall.  This is what rest_of_compilation uses to
  3970.     decide if it should go into jump_optimize or not.
  3971.     * cp-tree.h (explicit_warn_return_type): Deleted.
  3972.     * cp-decl.c (grokdeclarator): Use warn_return_type, not explicit_*.
  3973.     (finish_function): Also complain about no return in a non-void fn if
  3974.     we're being pedantic (don't rely on use of -Wreturn-type).
  3975.  
  3976. Fri Dec 17 15:45:46 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
  3977.  
  3978.     * cp-decl.c (grokdeclarator): Forbid declaration of a function as
  3979.     static if it's being done inside another function.
  3980.  
  3981.     * cp-search.c (compute_visibility): Check for friendship both ways.
  3982.  
  3983. Fri Dec 17 14:28:25 1993  Jason Merrill  (jason@deneb.cygnus.com)
  3984.  
  3985.     * cp-cvt.c (build_default_binary_type_conversion): Make error
  3986.     messages more helpful.
  3987.  
  3988.     * cp-error.c (op_as_string): New function, returns "operator =="
  3989.     given EQ_EXPR or suchlike.
  3990.  
  3991. Fri Dec 17 13:28:11 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
  3992.  
  3993.     * cp-call.c (print_n_candidates): New function.
  3994.     (build_overload_call_real): Use it when we complain about a call
  3995.     being ambiguous.
  3996.  
  3997. Fri Dec 17 12:41:17 1993  Jason Merrill  (jason@deneb.cygnus.com)
  3998.  
  3999.     * cp-call.c (build_method_call): Fix checking for static call
  4000.     context.
  4001.  
  4002.     * cp-method.c (build_opfncall): Call build_indirect_ref on argument
  4003.     to operator new.
  4004.  
  4005.     * cp-init.c (build_new): Don't mess with rval when building
  4006.     indirect ref.
  4007.  
  4008. Thu Dec 16 16:48:05 1993  Kung Hsu  (kung@cirdan.cygnus.com)
  4009.  
  4010.     * cp-lex.c (default_assign_ref_body): add check when TYPE_NESTED_
  4011.     NAME(type) may not be exist. It's not a problem for old compiler.
  4012.  
  4013. Thu Dec 16 14:46:06 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
  4014.  
  4015.     * cp-tree.h (CLASSTYPE_ALTERS_VISIBILITIES_P): Delete macro, it's
  4016.     never used for anything.
  4017.     (struct lang_type, member type_flags): Delete field
  4018.     `alters_visibility', and up `dummy' by 1.
  4019.     * cp-class.c (finish_base_struct): Delete code that copies the
  4020.     setting of CLASSTYPE_ALTERS_VISIBILITIES_P.
  4021.     (finish_struct): Delete code that sets it.
  4022.  
  4023. Thu Dec 16 14:44:39 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4024.  
  4025.     * cp-decl.c, cp-init.c, cp-typeck.c: Fix arguments to
  4026.     build_method_call that I messed up before.
  4027.  
  4028.     * cp-search.c (get_base_distance): If protect > 1, allow immediate
  4029.     private base.
  4030.  
  4031.     * cp-class.c (finish_base_struct): Set cant_synth_* correctly.
  4032.     (finish_struct): Ditto.  Well, nigh-correctly; it won't deal
  4033.     properly with the case where a class contains an object of an
  4034.     ambiguous base class which has a protected op=.  Should be fixed
  4035.     when the access control code gets overhauled.
  4036.     (finish_struct_methods): Set TYPE_HAS_NONPUBLIC_* correctly.
  4037.  
  4038. Thu Dec 16 12:17:06 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
  4039.  
  4040.     * cp-lex.c (real_yylex): Turn the code back on that deals with
  4041.     __FUNCTION__ and __PRETTY_FUNCTION__.  Don't use lookup_name, to
  4042.     avoid the ambiguity problems that led to it being turned off in the
  4043.     first place.
  4044.  
  4045.     * cp-method.c (hack_identifier): Also check for a TYPE_PTRMEMFUNC_P
  4046.     to see if something is a method.
  4047.  
  4048. Wed Dec 15 18:35:58 1993  Mike Stump  (mrs@cygnus.com)
  4049.  
  4050.     * cp-typeck.c (build_modify_expr): Avoid error messages on small
  4051.     enum bit fields.
  4052.     * cp-typeck.c (convert_for_assignment): Add missing argument to
  4053.     cp_warning and cp_pedwarn calls.
  4054.  
  4055. Wed Dec 15 18:25:32 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4056.  
  4057.     * cp-parse.y (member_init): ANSI C++ doesn't forbid old-style base
  4058.     initializers; it's just anachronistic.
  4059.  
  4060.     * cp-decl.c (finish_decl): Don't require external-linkage arrays
  4061.     to have a complete type at declaration time when pedantic.
  4062.  
  4063. Tue Dec 14 11:37:23 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4064.  
  4065.     * cp-decl.c (pushdecl): Don't set DECL_CONTEXT if it's already set.
  4066.  
  4067.     * cp-call.c (build_method_call): Don't dereference pointer given
  4068.     as instance.
  4069.  
  4070.     * cp-decl.c (finish_function): Don't pass pointer to
  4071.     build_method_call.
  4072.     (finish_function): Ditto.
  4073.  
  4074.     * cp-typeck.c (build_x_function_call): Ditto.
  4075.  
  4076.     * cp-method.c (build_component_type_expr): Ditto.
  4077.  
  4078.     * cp-init.c (build_member_call): Ditto.
  4079.     (build_new): Ditto.
  4080.  
  4081. Mon Dec 13 18:04:33 1993  Kung Hsu  (kung@cirdan.cygnus.com)
  4082.  
  4083.     * cp-decl.c (xref_tag): fix regression created by changes made 
  4084.     in Dec. 7 1993.
  4085.     * cp-decl.c (xref_defn_tag): fix parallel nested class problem.
  4086.  
  4087. Fri Dec 10 12:40:25 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
  4088.  
  4089.     * cp-call.c (compute_conversion_costs_ansi) [DEBUG_MATCHING]: Print
  4090.     out the final evaluation of the function, so we can see if ELLIPSIS,
  4091.     USER, and EVIL were set at the end.
  4092.  
  4093.     * cp-call.c (convert_harshness_ansi): When the parm isn't an lvalue,
  4094.     only go for setting TRIVIAL_CODE if we are dealing with types that
  4095.     are compatible.
  4096.  
  4097. Thu Dec  9 18:27:22 1993  Mike Stump  (mrs@cygnus.com)
  4098.  
  4099.     * cp-decl.c (flag_huge_objects): New flag to allow large objects.
  4100.     * toplev.c (lang_options): Ditto.
  4101.     * cp-decl2.c (flag_huge_objects, lang_f_options): Ditto.
  4102.     * cp-decl.c (delta_type_node): New type for delta entries.
  4103.     * cp-tree.h (delta_type_node): Ditto.
  4104.     * cp-decl.c (init_decl_processing): Setup delta_type_node.
  4105.     * cp-decl.c (init_decl_processing, build_ptrmemfunc_type): Use
  4106.     delta_type_node instead of short_integer_type_node. 
  4107.     * cp-class.c (build_vtable_entry): Ditto.
  4108.  
  4109. Thu Dec  9 16:19:05 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
  4110.  
  4111.     * cp-tree.h (OPERATOR_TYPENAME_P): Define outside of
  4112.     NO_{DOLLAR,DOT} macro checks, so it always gets defined.
  4113.     (VTABLE_NAME_P): Define for NO_DOT && NO_DOLLAR_IN_LABEL.
  4114.  
  4115. Wed Dec  8 17:38:06 1993  Mike Stump  (mrs@cygnus.com)
  4116.  
  4117.     * cp-decl.c (finish_decl): Make sure things that can go into
  4118.     "common", do go into common, if -fcommon is given.
  4119.  
  4120. Wed Dec  8 13:01:54 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
  4121.  
  4122.     * cp-call.c (print_harshness) [DEBUG_MATCHING]: New function.
  4123.     (compute_conversion_costs_ansi) [DEBUG_MATCHING]: Print out
  4124.     argument matching diagnostics to make instantly clear what the
  4125.     compiler is doing.
  4126.  
  4127.     * cp-call.c (convert_harshness_ansi): If the parm isn't an lvalue,
  4128.     then check to see if the penalty was increased due to
  4129.     signed/unsigned mismatch, and use a TRIVIAL_CODE if it wasn't.
  4130.  
  4131. Tue Dec  7 18:29:14 1993  Kung Hsu  (kung@cirdan.cygnus.com)
  4132.  
  4133.     * cp-decl.c (xref_tag, pushtag): Fix nested class search/resolution
  4134.     problem.
  4135.  
  4136. Tue Dec  7 16:09:34 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4137.  
  4138.     * cp-class.c (finish_struct): Before synthesizing methods, if no
  4139.     methods have yet been declared then set nonprivate_method.  Don't
  4140.     set non_private method after synthesizing a method.
  4141.  
  4142.     * cp-lex.c (extract_interface_info): If flag_alt_external_templates
  4143.     is set, tie emitted code to the location of template instantiation,
  4144.     rather than definition.
  4145.  
  4146.     * cp-tree.h: Declare flag_alt_external_templates.
  4147.  
  4148.     * cp-decl2.c (lang_decode_option): Support -falt-external-templates.
  4149.  
  4150.     * toplev.c (lang_options): Ditto.
  4151.  
  4152.        Mon Oct  4 12:50:02 1993  Chip Salzenberg  (chip@fin.uucp)
  4153.  
  4154.     [changes propagated from 930810 snapshot]
  4155.     * cp-decl.c (init_decl_processing): Make long long available for use
  4156.     as SIZE_TYPE and PTRDIFF_TYPE.
  4157.     (finish_decl): Allow file-scope static incomplete array.
  4158.     (grokdeclarator): Don't pass on const and volatile fron function
  4159.     value type to function type.
  4160.     Warn here for volatile fn returning non-void type.
  4161.     * cp-parse.y (attrib): Accept attributes `volatile' with alias
  4162.     `noreturn', and `const'.
  4163.     * cp-typeck.c (default_conversion): Don't lose const and volatile.
  4164.     (build_binary_op_nodefault): Generate pedantic warning for comparison
  4165.     of complete pointer type with incomplete pointer type.
  4166.     (build_c_cast): Be careful that null pointer constant be INTEGER_CST.
  4167.  
  4168. Tue Dec  7 10:46:48 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4169.  
  4170.     * cp-init.c (expand_vec_init): When creating a temporary for copying
  4171.     arrays, use the type of the source, not the target.
  4172.  
  4173.     * cp-cvt.c (convert): Pass an argument for errtype to
  4174.     convert_to_reference.
  4175.  
  4176.     * cp-error.c (dump_expr, COMPONENT_REF & CALL_EXPR): Deal with
  4177.     methods, -> and `this'.
  4178.  
  4179. Mon Dec  6 17:12:33 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4180.  
  4181.     * cp-error.c (parm_as_string): New function; returns `this' or arg
  4182.     number.  Corresponds to %P.
  4183.     (dump_expr): Deal with method calls.
  4184.  
  4185.     * cp-cvt.c (convert_to_reference): Stop using warn_for_assignment.
  4186.     * cp-typeck.c (convert_for_assignment): Ditto.
  4187.     (warn_for_assignment): Lose.
  4188.  
  4189. Mon Dec  6 11:33:35 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
  4190.  
  4191.     * cp-call.c (ideal_candidate_ansi): Delete code that was never
  4192.     doing anything useful.  Instead, sort once, and DO NOT wipe
  4193.     out any codes with EVIL_CODE, since that's what we use as a
  4194.     marker for the end of the list of candidates.
  4195.  
  4196.     * cp-cvt.c (convert_to_aggr): Make sure to always set H_LEN.
  4197.  
  4198. Mon Dec  6 12:49:17 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4199.  
  4200.     * cp-init.c (get_aggr_from_typedef): New function, like
  4201.     is_aggr_typedef but returns the _TYPE.
  4202.  
  4203.     * cp-call.c, cp-init.c, cp-method.c: Eradicate err_name.
  4204.  
  4205. Sun Dec  5 18:12:48 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
  4206.  
  4207.     * cp-lex.c (readescape): Pedwarn when a hex escape is out of range.
  4208.  
  4209. Thu Nov 25 23:50:19 1993  Chip Salzenberg  (chip@fin.uucp)
  4210.  
  4211.     Delay language context change until beginning of next decl.
  4212.  
  4213.     * cp-lex.h (c_header_level): Removed.
  4214.     (pending_lang_change): Declared.
  4215.     * cp-lex.c (c_header_level): Renamed from in_c_header, made static.
  4216.     (pending_lang_change): Defined.
  4217.     (check_newline): Rework code that recognizes line number and
  4218.     filename changes.  Instead of pushing and popping lang context,
  4219.     increment and decrement pending_lang_change.
  4220.     (do_pending_lang_change):  Push and pop lang context according
  4221.     to value of pending_lang_change.
  4222.     * cp-parse.y (extdefs): Use lang_extdef instead of extdef.
  4223.     (extdef): Same as extdef, but call do_pending_lang_change() first.
  4224.  
  4225. Mon Nov 15 15:39:15 1993  Chip Salzenberg  (chip@fin.uucp)
  4226.  
  4227.     * cp-typeck.c (build_binary_op_nodefault): Warn for ordered
  4228.     compare of ptr with 0 only if pedantic in both cases.
  4229.  
  4230. Thu Nov 25 13:31:37 1993  Chip Salzenberg  (chip@fin.uucp)
  4231.  
  4232.     Reinstate the below patch, which got lost in the Cygnus merge:
  4233.     Tue Nov 23 13:59:24 1993  Hallvard B Furuseth  (hbf@durin.uio.no)
  4234.     * cp-parse.y (maybe_type_qual): Don't fail to set $$.
  4235.  
  4236. Wed Nov 17 19:03:30 1993  Chip Salzenberg  (chip@fin.uucp)
  4237.  
  4238.     * cp-parse.y (attrib): Allow "ident(ident)" like the C front end.
  4239.  
  4240. Fri Oct 22 20:43:37 1993  Paul Eggert  (eggert@twinsun.com)
  4241.  
  4242.     * cp-lex.c (real_yylex): Diagnose floating point constants
  4243.     that are too large.
  4244.  
  4245. Wed Nov 17 19:10:37 1993  Chip Salzenberg  (chip@fin.uucp)
  4246.  
  4247.     * cp-type2.c (build_functional_cast): ARM page 16: When a class
  4248.     and an object, function or enumerator are declared in the same
  4249.     scope with the same name, the class name is hidden.
  4250.  
  4251. Wed Nov 17 19:07:18 1993  Chip Salzenberg  (chip@fin.uucp)
  4252.  
  4253.     * cp-call.c (convert_harshness_ansi): Distinguish float, double,
  4254.     and long double from each other when overloading.
  4255.     (compute_conversion_costs_{ansi,old}, build_method_call,
  4256.     build_overlay_call_real, convert_to_aggr): Always set and
  4257.     always use H_LEN member of candidate structure.
  4258.  
  4259. Mon Oct 11 23:10:53 1993  Chip Salzenberg  (chip@fin.uucp)
  4260.  
  4261.     * cp-decl.c (duplicate_decls): Note redeclarations of library
  4262.     functions, and generate distinct warnings for them.
  4263.  
  4264. Mon Oct  4 12:26:49 1993  Chip Salzenberg  (chip@fin.uucp)
  4265.  
  4266.     Support format warnings in G++.
  4267.  
  4268.     * cp-tree.h: Protect against multiple inclusion.
  4269.     Declare all public functions in c-common.c (copy from c-tree.h).
  4270.     (STDIO_PROTO): Define.
  4271.     (warn_format): Declare.
  4272.     (record_format_info): Remove declaration.
  4273.     * cp-decl.c (init_decl_processing): Call init_function_format_info.
  4274.     * cp-decl2.c (lang_decode_option): Make "-Wall" include warn_format.
  4275.     * cp-typeck.c (build_function_call_real): Call check_function_format.
  4276.     (record_format_info): Remove -- obsolete stub.
  4277.  
  4278. Sat Jul 24 12:04:29 1993  Chip Salzenberg  (chip@fin.uucp)
  4279.  
  4280.     * cp-decl.c (duplicate_decls): Don't warn for non-extern var decl
  4281.     following an extern one (for -Wredundant-decls).
  4282.     * cp-parse.y (primary): In statement expression case, if compstmt
  4283.     returns something other than a BLOCK, return it unchanged.
  4284.  
  4285. Thu Dec  2 20:44:58 1993  Chip Salzenberg  (chip@fin.uucp)
  4286.  
  4287.     * cp-decl.c (warn_extern_redeclared_static): New function made
  4288.     from code extracted from pushdecl.
  4289.     (duplicate_decls, pushdecl): Call new function.
  4290.     (lookup_name_current_level): Allow for IDENTIFIER_GLOBAL_VALUE
  4291.     to be a TREE_LIST when function is declared in 'extern "C" {}'.
  4292.  
  4293. Fri Dec  3 16:01:10 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4294.  
  4295.     * cp-class.c (duplicate_tag_error): Use cp_error.
  4296.     (finish_base_struct): Check for ambiguity with direct base, and don't
  4297.     generate op= or copy ctor if it exists.
  4298.  
  4299. Fri Dec  3 15:32:34 1993  Kung Hsu  (kung@cirdan.cygnus.com)
  4300.  
  4301.     * cp-init.c (expand_member_init): when initializer name is null,
  4302.     don't try to build it now because emit_base_init will handle it.
  4303.  
  4304. Fri Dec  3 12:28:59 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4305.  
  4306.     * cp-lex.c (init_lex): Initialize input_filename to "<internal>" for
  4307.     code such as ExceptionHandler::operator=.
  4308.  
  4309. Fri Dec  3 10:32:08 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4310.  
  4311.     * cp-decl.c (grokdeclarator): Don't try to print out dname when
  4312.     complaining about arrays of references if decl_context==TYPENAME,
  4313.     since it will be null.
  4314.  
  4315.     * cp-decl2.c: Default to flag_ansi_overloading.
  4316.  
  4317. Thu Dec  2 18:05:56 1993  Kung Hsu  (kung@cirdan.cygnus.com)
  4318.  
  4319.     * cp-call.c (build_method_call): use binfo from instance if it's
  4320.     different from binfo (basetype_path) passed from above.
  4321.  
  4322. Thu Dec  2 12:48:36 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
  4323.  
  4324. Wed Nov 17 19:14:29 1993  Chip Salzenberg  (chip@fin.uucp)
  4325.  
  4326.     cp-error.c (dump_expr): Use unsigned chars to output a
  4327.     TREE_REAL_CST in hex.
  4328.  
  4329. Thu Dec  2 11:05:48 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4330.  
  4331.     * cp-class.c (finish_struct): Fix typo in setting
  4332.     cant_synth_asn_ref.
  4333.  
  4334.     * cp-tree.h (TYPE_NESTED_NAME): New macro, does
  4335.     DECL_NESTED_TYPENAME (TYPE_NAME (NODE)).
  4336.  
  4337.     * cp-lex.c (default_copy_constructor_body): Change
  4338.     DECL_NAME (TYPE_NAME (btype)) to TYPE_NESTED_NAME (btype).
  4339.     (default_assign_ref_body): Ditto.
  4340.     (default_copy_constructor_body): Call operator= explicitly for
  4341.     base classes that have no constructor.
  4342.  
  4343. Thu Dec  2 10:47:15 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
  4344.  
  4345.     * cp-call.c (build_method_call): If the instance variable is
  4346.     converted to error_mark_node when we're trying to convert it to the
  4347.     base type of a method we're looking up, return error_mark_node.
  4348.  
  4349. Thu Dec  2 10:41:16 1993  Torbjorn Granlund  (tege@cygnus.com)
  4350.  
  4351.     * cp-typeck.c (build_binary_op_nodefault): In *_DIV_EXPR *_MOD_EXPR
  4352.     cases, tests for unsigned operands by peeking inside a NOP_EXPR.
  4353.  
  4354. Wed Dec  1 13:33:34 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
  4355.  
  4356.     * cp-call.c (compute_conversion_costs_ansi): Use the size of struct
  4357.     harshness_code, not the size of short, for clearing out the
  4358.     ansi_harshness.
  4359.  
  4360.     * cp-call.c (print_candidates): New function.
  4361.     (build_method_call): When we had some candidates, but didn't get a
  4362.     usable match, don't report that we got an error with the first
  4363.     candidate.  Instead, say there were no matches, and list the
  4364.     candidates with print_candidates.  In the second pass, make sure we
  4365.     clear out ever_seen, so we can accurately count the number of
  4366.     functions that qualified.
  4367.  
  4368. Wed Dec  1 09:53:59 1993  Torbjorn Granlund  (tege@cygnus.com)
  4369.  
  4370.     * cp-typeck.c (build_binary_op_nodefault): Shorten for *_MOD_EXPR
  4371.     only if op1 is known to be != -1.
  4372.     (build_binary_op_nodefault): Handle *_DIV_EXPR likewise.
  4373.  
  4374. Tue Nov 30 14:07:26 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
  4375.  
  4376.     * cp-method.c (hack_identifier): If the field itself is private, and
  4377.     not from a private base class, say so.
  4378.  
  4379. Mon Nov 29 03:00:56 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4380.  
  4381.     * cp-decl.c (grokdeclarator): Always warn on initialization of
  4382.     const member.
  4383.  
  4384. Wed Nov 24 00:49:35 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4385.  
  4386.     * cp-class.c (finish_struct): Set TYPE_GETS_CONST_* properly.
  4387.     (finish_base_struct): Set cant_synth_asn_ref properly.
  4388.  
  4389.     * cp-lex.c (cons_up_default_function): Add section for operator=.
  4390.     (default_assign_ref_body): New function, mostly cribbed from
  4391.     default_copy_constructor_body.
  4392.  
  4393.     * cp-class.c (base_info): Add members cant_synth_copy_ctor,
  4394.     cant_synth_asn_ref, no_const_asn_ref.
  4395.     (finish_base_struct): Update no_const_asn_ref, note that you should
  4396.     update cant_synth_*, propagate TYPE_GETS_ASSIGN_REF.
  4397.     (finish_struct): Add decls for cant_synth_*, no_const_asn_ref, and
  4398.     initialize them properly.  Set no_const_asn_ref properly.  Set
  4399.     cant_synth_* in some of the situations where they should be set.
  4400.     Propagate TYPE_GETS_ASSIGN_REF.  Use cant_synth_copy_ctor.  Add call
  4401.     to cons_up_default_function for operator=.
  4402.  
  4403. Tue Nov 23 20:24:58 1993  Mike Stump  (mrs@cygnus.com)
  4404.  
  4405.     * cp-cvt.c (convert_force): Add code to perform casting of pointer
  4406.     to member function types.
  4407.     * cp-typeck.c (build_ptrmemfunc): Add FORCE parameter to indicate
  4408.     when the conversion should be done, regardless.
  4409.     * cp-tree.h (build_ptrmemfunc): Ditto.
  4410.     * cp-type2.c (digest_init): Ditto.
  4411.     * cp-typeck.c (convert_for_assignment): Ditto.
  4412.  
  4413. Tue Nov 23 18:06:58 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4414.  
  4415.     * cp-error.c (dump_expr): Do the right thing for variables of
  4416.     reference type.
  4417.  
  4418.     * cp-decl.c (grok_op_properties): Set TYPE_HAS_ASSIGN_REF
  4419.     and its kin properly.
  4420.     (xref_tag): Propagate TYPE_GETS_ASSIGN_REF.
  4421.  
  4422. Tue Nov 23 12:26:13 1993  Mike Stump  (mrs@cygnus.com)
  4423.  
  4424.     * cp-method.c (build_opfncall): Don't count pointer to member
  4425.     functions as aggregates here, as we don't want to look up methods in
  4426.     them.  The compiler would core dump if we did, as they don't have
  4427.     normal names.
  4428.     * cp-typeck.c (build_indirect_ref): Improve wording on error
  4429.     message.
  4430.  
  4431. Mon Nov 22 14:22:23 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4432.  
  4433.     * cp-decl.c (grok_op_properties): Allow operator?: with pedwarn
  4434.     (since it's supported in other compiler bits).
  4435.  
  4436.     * cp-method.c (report_type_mismatch): Use cp_error; ignore err_name
  4437.     argument.
  4438.  
  4439.     * cp-error.c (dump_function_decl): Don't print return type for
  4440.     constructors and destructors.
  4441.  
  4442.     * cp-cvt.c (cp_convert_to_pointer): Import code from
  4443.     convert_to_pointer so we can return error_mark_node in the case of an
  4444.     error, and to allow more meaningful error messages.
  4445.     (build_type_conversion): Don't go through void* when trying
  4446.     to convert to a pointer type.
  4447.  
  4448.     * cp-decl.c (grokfndecl): Move call to grok_op_properties back
  4449.     after grokclassfn so that it's dealing with the right decl.
  4450.     (grok_op_properties): Don't assert !methodp for op new and op delete.
  4451.  
  4452.     * cp-init.c (build_delete): Don't use TYPE_BUILT_IN (there are now
  4453.     no uses of it in the compiler).
  4454.  
  4455.     * cp-call.c (build_scoped_method_call): Fix for destructors of simple
  4456.     types.
  4457.     (build_method_call): Ditto.
  4458.  
  4459. Fri Nov 19 12:59:38 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4460.  
  4461.     * cp-tree.c (count_functions): Abstraction function.
  4462.  
  4463.     * cp-call.c (build_overload_call_real): Deal with new overloading
  4464.     properly, remove dead code.
  4465.  
  4466.     * gcc.c (default_compilers): Generate and use .ii files in the
  4467.     intermediate stage of compiling C++ source.
  4468.  
  4469. Fri Nov 19 11:26:09 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
  4470.  
  4471.     * cp-expr.c (cplus_expand_expr): Make call_target a valid memory
  4472.     address before using it, so it can be later safely compared.
  4473.  
  4474. Fri Nov 12 15:30:27 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4475.  
  4476.     * cp-pt.c (tsubst): Deal with new overloading.
  4477.  
  4478.     * cp-typeck.c (fntype_p): is the arg function type?
  4479.     (comp_target_parms): pedwarn on conversion from (anything) to (...).
  4480.     (build_x_function_call): Deal with new overloading.
  4481.  
  4482.     * cp-tree.c (decl_list_length): Deal with new overloading.
  4483.     (decl_value_member): Like value_member, but for DECL_CHAINs.
  4484.  
  4485.     * cp-decl.c (duplicate_decls): Deal with new overloading.
  4486.     (start_decl): Ditto.
  4487.  
  4488.     * cp-class.c (instantiate_type): Deal with new overloading.
  4489.  
  4490.     * cp-call.c (convert_harshness_ansi): Deal with new overloading.
  4491.     (convert_harshness_old): Deal with new overloading.
  4492.     (build_overload_call_real): Ditto.
  4493.  
  4494. Mon Nov  8 13:50:49 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4495.  
  4496.     * cp-tree.c (get_unique_fn): New function; returns FUNCTION_DECL
  4497.     if unambiguous, NULL_TREE otherwise.
  4498.     (get_first_fn): Returns the first appropriate FUNCTION_DECL.
  4499.     (is_overloaded_fn): Returns whether or not the passed tree is
  4500.     a function or list of functions.
  4501.  
  4502.     * cp-init.c (init_init_processing): use `get_first_fn' to find
  4503.     the FUNCTION_DEFN for new and delete.
  4504.  
  4505.     * cp-decl.c (push_overloaded_decl): Use new overloading strategy, cut
  4506.     code size in half (I spit on special cases).
  4507.  
  4508. Tue Sep  7 20:03:33 1993  Jason Merrill  (jason@deneb.cygnus.com)
  4509.  
  4510.     * cp-decl.c: Allow references and template type parameters as well
  4511.  
  4512. Local Variables:
  4513. eval: (auto-fill-mode)
  4514. left-margin: 8
  4515. fill-column: 76
  4516. End:
  4517.